Closed Bug 287547 Opened 20 years ago Closed 20 years ago

Line breaks after opening tag should be ignored

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 2750

People

(Reporter: timwi, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 StumbleUpon/1.9993
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 StumbleUpon/1.9993

According to the HTML spec:

   http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.1
   ... a line break immediately following a start tag must be ignored, as must
   a line break immediately before an end tag. This applies to all HTML
   elements without exception.

However, the following example shows that Firefox does not heed this:

<html>
<body>
<p>This is a l<a href='http://example.com/'>in</a>k.</p>
<p>This is a l<a href='http://example.com/'>
in</a>k.</p>
<p>This is a l<a href='http://example.com/'>in
</a>k.</p>
</body>
</html>

This will display spaces in the links.

Reproducible: Always

Steps to Reproduce:
Summary: Spaces after opening tag should be ignored → Line breaks after opening tag should be ignored
Assignee: nobody → parser
Component: Layout: Fonts and Text → HTML: Parser
QA Contact: layout.fonts-and-text → mrbkap
Whiteboard: DUPEME

*** This bug has been marked as a duplicate of 2750 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.