WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
10996
WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree)
https://bugs.webkit.org/show_bug.cgi?id=10996
Summary
WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree)
Eric Seidel (no email)
Reported
2006-09-23 04:37:04 PDT
WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree) Currently DumpRenderTree uses the following code for dumping text from a document: if ([documentElement isKindOfClass:[DOMHTMLElement class]]) result = [[(DOMHTMLElement *)documentElement innerText] stringByAppendingString:@"\n"]; else result = [[documentElement valueForKey:@"textContent"] stringByAppendingString:@"\n"]; This results in pretty much totally broken text content for SVG or XML-based layout tests. The dumped content includes the contents of script tags, lacks newlines, and is generally bad. For an example, see the soon-to-be committed LayoutTests/svg/custom/stroke-width-click-expected.txt results.
Attachments
First attempt
(11.23 KB, patch)
2006-12-08 14:39 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Updated test result
(91.92 KB, patch)
2006-12-09 07:26 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Improved patch
(92.57 KB, patch)
2006-12-09 10:29 PST
,
Rob Buis
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Rob Buis
Comment 1
2006-12-08 14:39:17 PST
Created
attachment 11780
[details]
First attempt This patch should fix the problem. Unfortunately some of the non-svg tests are messed up for me, even without this patch, so maybe someone else needs to check them for changed results (and eventually I need to fix my build ofcourse). Cheers, Rob.
Rob Buis
Comment 2
2006-12-09 07:26:58 PST
Created
attachment 11786
[details]
Updated test result Now with updated test results. Cheers, Rob.
David Kilzer (:ddkilzer)
Comment 3
2006-12-09 09:58:14 PST
Comment on
attachment 11786
[details]
Updated test result
>+ Updated testcases sue to: >+
http://bugs.webkit.org/show_bug.cgi?id=10996
>+ WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree) >+ >+ [...] >+ * tables/mozilla/bugs/
bug33855
-expected.txt:
This is a regression from
Bug 10054
and should not be included in this patch.
Rob Buis
Comment 4
2006-12-09 10:29:32 PST
Created
attachment 11789
[details]
Improved patch Weinig pointed out the innerTextInternal is not really needed. Since innerText is not exposed to js wrappers it is ok to have the method in Element. Also moved outerText there for symmetry. Cheers, Rob.
Rob Buis
Comment 5
2006-12-09 11:24:04 PST
Hi David, (In reply to
comment #3
)
> (From update of
attachment 11786
[details]
[edit]) > >+ Updated testcases sue to: > >+
http://bugs.webkit.org/show_bug.cgi?id=10996
> >+ WebKit needs (possibly private) XML/SVG innerText support (for DumpRenderTree) > >+ > >+ [...] > >+ * tables/mozilla/bugs/
bug33855
-expected.txt: > > This is a regression from
Bug 10054
and should not be included in this patch.
I was already doubting this one. Thnx for paying attention ;) I corrected it in latest patch. Cheers, Rob.
Rob Buis
Comment 6
2006-12-09 12:05:55 PST
***
Bug 8474
has been marked as a duplicate of this bug. ***
Darin Adler
Comment 7
2006-12-09 14:45:59 PST
Comment on
attachment 11789
[details]
Improved patch Looks fine, r=me.
Mark Rowe (bdash)
Comment 8
2006-12-11 15:01:48 PST
This was landed by Rob in
r18134
.
Lucas Forschler
Comment 9
2019-02-06 09:03:49 PST
Mass moving XML DOM bugs to the "DOM" Component.
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