element-permitted-order reports the error on parent element instead of the malplaced element
When using element-permitted-order
Reduced test-case
From rule documentation:
<table>
<thead></thead>
<caption></caption>
</div>
Expected result
Line 3 <caption>
should be reported as wrong.
Actual result
Line 1 is reported as wrong. While technically the restriction comes from <table>
it is <caption>
that is in the wrong location and would aid the user to have the error on line 3.