You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Trejkaz (JIRA)" <ji...@apache.org> on 2017/02/13 23:10:42 UTC
[jira] [Created] (BATIK-1177) CSS Parser calls ignorableAtRule with
mangled value
Trejkaz created BATIK-1177:
------------------------------
Summary: CSS Parser calls ignorableAtRule with mangled value
Key: BATIK-1177
URL: https://issues.apache.org/jira/browse/BATIK-1177
Project: Batik
Issue Type: Bug
Components: CSS
Affects Versions: 1.8
Reporter: Trejkaz
I tried using the CSS parser to parse some CSS.
{code:java}
Parser parser = new org.apache.batik.css.parser.Parser();
parser.setDocumentHandler(myHandler);
parser.parseStyleSheet(new InputSource(new StringReader(cssIn)));
{code}
However the first test case I threw at it:
{code:css}
@namespace url(XML-namespace-URL);
@namespace \"XML-namespace-URL\";
@namespace prefix url(XML-namespace-URL);
@namespace prefix \"XML-namespace-URL\";
{code}
Calls my handler with the wrong value:
{noformat}
"XML-namespace-URL);"
{noformat}
Whereas I would have expected at least everything after the @ sign:
{noformat}
"namespace url(XML-namespace-URL);"
{noformat}
And as far as I can tell, the correct behaviour is to call namespaceDeclaration, _not_ ignorableAtRule.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org