WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
59415
pre element does not strip a leading newline character
https://bugs.webkit.org/show_bug.cgi?id=59415
Summary
pre element does not strip a leading newline character
Ryou Ezoe
Reported
2011-04-25 21:38:48 PDT
In the HTML5 specification. pre element has this note. Note: In the HTML syntax, a leading newline character immediately following the pre element start tag is stripped. So for a following markup(including newline) <pre> a </pre> Webkit must strip a leading newline and behave as if it is written as <pre>a </pre> Also, textContent for this pre element's node must be "a\n".
Attachments
test case (seems to work correctly)
(105 bytes, text/html)
2011-04-26 09:45 PDT
,
Alexey Proskuryakov
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2011-04-26 09:45:43 PDT
Created
attachment 91119
[details]
test case (seems to work correctly)
Alexey Proskuryakov
Comment 2
2011-04-26 09:46:31 PDT
It seems to work that way in both Safari/WebKit 5.0.5 and a recent local build. Where is it broken?
Ryou Ezoe
Comment 3
2011-04-26 17:40:10 PDT
Sorry. I misinterpret the spec. A leading newline is stripped only in the HTML syntax. I tested it in XHTML. I want this report to be closed. Sorry for not add comment immediately. I couldn't figure out how to search my report.
Alexey Proskuryakov
Comment 4
2011-04-26 19:26:37 PDT
Thank you for following up on this!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug