question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Explain \\: escaping colon for xml namespace pseudo

See original GitHub issue

While attempting to parse an RSS feed, I got the SyntaxError: unmatched pseudo-class :origlink error. Looking through the issues, I only found references to jQuery pseudo-classes.

For XML parsing, it might help to mention escaping the : with a double backslash. On the other hand, that’s a standard CSS selector feature, so maybe the text of this issue will be enough SEO to help others who run into the same error.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:12
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
Meekohicommented, Apr 7, 2016

lol just ended up back here a year and a half later. It might be nice if this error message were slightly different when xmlMode:true to give a hint at the quick fix.

1reaction
kevinpenocommented, Mar 20, 2015

In case anyone stumbles upon this with the intention to use attr, escaping is not necessary (nor possible) in that use case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to escape colon (:) in XML for XML Reader in extjs 4
Colon is a reserved character in XML identifiers, and may be used only for binding XML Namespaces. There is no way to escape...
Read more >
Extensible Markup Language (XML) 1.0 (Fifth Edition) - W3C
Therefore, authors should not use the colon in XML names except for namespace purposes, but XML processors must accept the colon as a...
Read more >
Namespaces and Introduction to XPath - Courses
These parts are separated by a colon and called QNames (Qualified Names). ... <c:pseudocode xmlns:c="urn:publicid:IDN+mathdoc.org:pseudocode:en"> <c:comment ...
Read more >
General Information on Namespaces
Defining a namespace within an XML document is simple: a document node is given an xmlns attribute to define the default namespace. Similarly,...
Read more >
JCR 1.0: 6.4.3 Escaping of Names (Content Repository for ...
For example, a content repository name may contain spaces, whereas XML names ... name (as defined by XML 1.0) by translating invalid characters...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found