Closed Bug 686503 Opened 14 years ago Closed 5 years ago

HTML not rendered properly when span tag is used

Categories

(Core :: DOM: HTML Parser, defect, P5)

6 Branch
x86
Windows XP
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: oneskywalker49, Unassigned)

Details

Attachments

(2 files)

Attached file spanned.html
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 Build ID: 20110902133214 Steps to reproduce: Composed a web page Actual results: Firefox 6.0.2 is not rendering HTML properly when span tag is used. Microsoft Internet Explorer 8 and prior versions of Firebox do render the HTML properly. Using Firefox and IE on Windows XP. Expected results: Specifications via span tag should have been respected. See comments in attached file.
Attachment #559995 - Attachment mime type: text/plain → text/html
There is an unclose <a name="Example1">, which has to get closed when the <a href="http://www.google.com" target="_blank"> is parsed. That involves closing the <span class="mknorm" as well. Over to parser, but I believe the new behavior is what the HTML5 spec calls for. It also matches WebKit, and I believe matches the IE10 platform preview.
Component: General → HTML: Parser
QA Contact: general → parser
I would assume the <span> is automatically closed because <p> is not a valid child of <span>. You'll want to use <div> for this. -<span>'s only valid children are "Phrasing Content": see "content model" of http://www.w3.org/TR/html/text-level-semantics.html#the-span-element -<p> is not "Phrasing Content": http://www.w3.org/TR/html/dom.html#phrasing-content Chrome is also matching Firefox's behavior on this one.

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5

Closing per comment 3.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: