Empty-closed (<div/>) tags should be handled correctly
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: googol.morons, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
Place <div style="text-align: center;"/> in the middle of left-aligned text in HTML document.
Render document in FF.
Actual results:
The text after <div/> is centered - the <div/> tag is recognized as 'never-closed' and the following part of text lays within it.
Expected results:
The tag should be available within DOM tree as empty. Following text must never be affected by it's styling.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
Only foreign elements are self-closing. The void elements can contain the /, but <div> isn't a void element.
Description
•