Inspector should display CDATA section data Inspect "button-WICD.svg" at the attached link. Notice that none of the script is actually displayed for the <script> tags, since the inspector hides it under the "cdata section". It also shows 4 cdata sections, which makes no sense.
<rdar://problem/5712873>
Created attachment 62580 [details] [PATCH] Suggested solution
Once this issue is fixed, users are sure to hit https://bugs.webkit.org/show_bug.cgi?id=35284 when examining CDATA sections (especially long ones) in the DOM tree. This is fine, since Web Inspector just reports what it gets from the lower levels (the XML parser in this case).
Comment on attachment 62580 [details] [PATCH] Suggested solution LGTM. I'm not an inspector expert. Let me know if you'd rather I didn't review patches like this in the future.
Comment on attachment 62580 [details] [PATCH] Suggested solution Please test that editing is working - we are checking both for node type and style class in the context menu editing code. Also, could you update elements panel test to include new node type?
Created attachment 62808 [details] [PATCH] Comments addressed Test augmented and rebaselined. Adding editing caps is non-trivial as it requires the modification of the DOM tree building procedure and doesn't seem to pay off, especially given the XML parsing bug in place.
Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/ChangeLog M LayoutTests/inspector/elements-panel-xhtml-structure-expected.txt M LayoutTests/inspector/elements-panel-xhtml-structure.xhtml M WebCore/ChangeLog M WebCore/inspector/InspectorDOMAgent.cpp M WebCore/inspector/front-end/ElementsTreeOutline.js Committed r64267