Closed
Bug 532058
Opened 16 years ago
Closed 15 years ago
innerHTML does not close certain elements when using minimized tag syntax
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 162653
People
(Reporter: danny.moules, Unassigned)
Details
Attachments
(1 file)
|
469 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
When setting innerHTML with a DIV element closed using minimized tag syntax, the element is not closed but it treated as an opening tag. This behaviour is apparent in XHTML 1.1 delivered as text/html.
Reproducible: Always
Steps to Reproduce:
1. Visit attached page
2. View modified code using an extension such as Firebug
Actual Results:
DIV element is not closed resulting in:
<div><p>Stuff outside div</p>
Expected Results:
DIV element is closed:
<div></div><p>Stuff outside div</p>
text/html delivery is required due to dependence on the code in question working with Google Maps. Other scenarios have not yet been tested.
Does not affect certain elements (eg. BR).
Workaround is simply to close tag the alternative (non-XML) way. Filed as 'Normal' severity in light of the relative ease with which this bug could be triggered and the fact that the XHTML 1.0 specification recommends the use of minimized tag syntax over the alternative syntax.
| Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•15 years ago
|
||
innerHTML in a text/html document behaves like any other parsing that happens in a text/html document.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
OS: Windows XP → All
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•