Closed Bug 753344 Opened 12 years ago Closed 12 years ago

Having 200 nested divs means that new tag opening is ignored

Categories

(Core :: DOM: HTML Parser, defect)

11 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 354161

People

(Reporter: norbert, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
Build ID: 20120312181643

Steps to reproduce:

I used over 198 anchors in the form of a div section (e.g. <div id='anchor_123' />).



Actual results:

Firefox will stop formatting anything that follows after the 198th anchor.

(If I split the tag into <div id='anchor_123'></div> the error doesn't occur.)


Expected results:

Formatting should continue normally (it does in Internet Explorer or Chrome).
The same thing happens in V11.0 or in V12.0
Attachment #622376 - Attachment mime type: text/plain → text/html
confirming with Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/15.0 Firefox/15.0a1 SeaMonkey/2.12a1
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
Product: Firefox → Core
QA Contact: untriaged → layout
The issue is just having 200 or so unclosed elements on the stack (because the trailing / in a start tag does NOT close the tag in HTML).  Once you get to that point, we stop allowing new elements to open as a way to protect against DoS attacks by pages...  There are existing bugs about that.  This is implemented directly in the parser.
Component: Layout → HTML: Parser
QA Contact: layout → parser
Whiteboard: DUPEME
Summary: Too many anchors are sinking Firefox → Having 200 nested divs means that new tag opening is ignored
look like a dupe of bug 354161
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: