WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
12735
innerHTML for <pre> element is not markup but = innerText
https://bugs.webkit.org/show_bug.cgi?id=12735
Summary
innerHTML for <pre> element is not markup but = innerText
Stefan Frey
Reported
2007-02-11 10:18:55 PST
if a page contains something like <pre> some text describing markup, eg <b> </pre> the html returned by inner/outerHTML of any of its parents is <pre> some text describing markup, eg <b> </pre> I assume that "startMarkup" in "markup.cpp" should not call "stringValueForRange" for a "preTag", but use the reular path. If I remove the preTag from the "if" at the beginning of the "case Node::TEXT_NODE" I get the desired result.
Attachments
Check the innerHTML in the WebInspector!
(274 bytes, text/html)
2007-02-12 01:50 PST
,
Stefan Frey
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Stefan Frey
Comment 1
2007-02-12 01:50:09 PST
Created
attachment 13126
[details]
Check the innerHTML in the WebInspector!
Darin Adler
Comment 2
2007-02-12 11:45:49 PST
***
Bug 12744
has been marked as a duplicate of this bug. ***
Darin Adler
Comment 3
2007-02-12 11:46:14 PST
Bug 12744
has a good test case.
Geoffrey Garen
Comment 4
2007-02-12 12:17:53 PST
I think a dup of this is in radar, assigned to Justin.
Justin Garcia
Comment 5
2007-03-02 13:45:42 PST
<
rdar://problem/4545040
>
Justin Garcia
Comment 6
2007-03-02 14:55:41 PST
r19948
Justin Garcia
Comment 7
2007-03-02 15:16:07 PST
r19949
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