summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSSelector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSSelector.cpp')
-rw-r--r--WebCore/css/CSSSelector.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/WebCore/css/CSSSelector.cpp b/WebCore/css/CSSSelector.cpp
index 5add90b..e45bf4c 100644
--- a/WebCore/css/CSSSelector.cpp
+++ b/WebCore/css/CSSSelector.cpp
@@ -25,9 +25,9 @@
#include "config.h"
#include "CSSSelector.h"
-#include "wtf/Assertions.h"
+#include "CSSOMUtils.h"
#include "HTMLNames.h"
-
+#include <wtf/Assertions.h>
#include <wtf/HashMap.h>
#include <wtf/StdLibExtras.h>
@@ -585,10 +585,10 @@ String CSSSelector::selectorText() const
while (true) {
if (cs->m_match == CSSSelector::Id) {
str += "#";
- str += cs->m_value;
+ serializeIdentifier(cs->m_value, str);
} else if (cs->m_match == CSSSelector::Class) {
str += ".";
- str += cs->m_value;
+ serializeIdentifier(cs->m_value, str);
} else if (cs->m_match == CSSSelector::PseudoClass || cs->m_match == CSSSelector::PagePseudoClass) {
str += ":";
str += cs->m_value;
@@ -640,9 +640,8 @@ String CSSSelector::selectorText() const
break;
}
if (cs->m_match != CSSSelector::Set) {
- str += "\"";
- str += cs->m_value;
- str += "\"]";
+ serializeString(cs->m_value, str);
+ str += "]";
}
}
if (cs->relation() != CSSSelector::SubSelector || !cs->tagHistory())