Steven Noels wrote:
> 
> I'm using a DTD which has element names with dots in it (e.g.
> code.block). So I created a CSS definition:
> 
> code.block {
>      white-space: pre;
>      display: block;
>      background-color: #E0E0E0;
>      border: thin solid gray;
>      font-family: monospace;
>      font-size: .83em;
>      margin-top: 1.33ex;
>      margin-bottom: 1.33ex;
> }
> 
> but unfortunately, that style wasn't triggered. When I got rid of the
> dot in the element name in both my document and stylesheet, everything
> was working fine...
> 
> I tried my luck by defining my style selector using an escape character
> before the dot, and behold! everything was working fine:
> 
> code\.block {
>      //... (leave stuff as-is)
> }

Excellent idea you had.

Note that for XXE, like with for any Web browser, code.block is a
shorthand notation for code[class~="block"] (and code#block is a
shorthand notation for code[id="block"]).

Reply via email to