Closed
Bug 1444067
Opened 8 years ago
Closed 8 years ago
Incorrect DOM Construction with invalid unclosed tags
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: frnkprns94, Unassigned)
References
()
Details
(Keywords: testcase)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20180206200532
Steps to reproduce:
1. Open the following url: (https://jsfiddle.net/FrankPrins/0Luqa5hy/)
2. Observe that the source code has only one "a"-element that is not properly closed
3. Inspect the element
4. Observe that the output has 4 "a"-elements in the constructed DOM. One is constructed at the original location, but three others are constructed each at the end of the next parent.
Actual results:
The element is constructed more than once.
Expected results:
The expected behavior is that the "a"-element is only terminated before the end of the parent as this is the only valid way to try to resolve the developer induced error. It is definitely not expected to have the element constructed more than once.
| Reporter | ||
Comment 1•8 years ago
|
||
Bug is also present in Chrome (https://bugs.chromium.org/p/chromium/issues/detail?id=820040), IE, Edge
Updated•8 years ago
|
Has Regression Range: --- → irrelevant
Has STR: --- → yes
Component: Untriaged → HTML: Parser
Keywords: testcase
Product: Firefox → Core
Comment 2•8 years ago
|
||
The error handling is completely defined by the spec and this is expected.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•