Commit 9cc9ebd7 authored by hyatt's avatar hyatt
Browse files

Fix a glitch in view source mode attribute names.

        * html/HTMLViewSourceDocument.cpp:
        (WebCore::HTMLViewSourceDocument::addViewSourceToken):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3ab65053
2007-05-18 David Hyatt <hyatt@apple.com>
Fix a glitch in view source mode attribute names.
* html/HTMLViewSourceDocument.cpp:
(WebCore::HTMLViewSourceDocument::addViewSourceToken):
2007-05-18 David Hyatt <hyatt@apple.com>
 
"Linkify" view source mode links.
......@@ -112,8 +112,14 @@ void HTMLViewSourceDocument::addViewSourceToken(Token* token)
if (guide->at(i) == 'a') {
Attribute* attr = token->attrs->attributeItem(currAttr);
String name = attr->name().toString();
String nameClassStr = doctype ? "webkit-html-doctype" : (name == "/" ? "webkit-html-tag" : "webkit-html-attribute-name");
addText(name, nameClassStr);
if (doctype)
addText(name, "webkit-html-doctype");
else {
m_current = addSpanWithClassName("webkit-html-attribute-name");
addText(name, "webkit-html-attribute-name");
if (m_current != m_tbody)
m_current = static_cast<Element*>(m_current->parent());
}
if (attr->value().isNull() || attr->value().isEmpty())
currAttr++;
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment