html5_doctype icon indicating copy to clipboard operation
html5_doctype copied to clipboard

Shorter regex?

Open designermonkey opened this issue 11 years ago • 1 comments

I discovered today that you can use the following in xsl

<xsl:output method="xml"
    doctype-public=""
    doctype-system=""
    omit-xml-declaration="yes"
    encoding="UTF-8"
    indent="yes" />

which outputs

<!doctype html PUBLIC "" "">

I thought this might be of interest to you as if advised to users of this extension, it could mean a shorter regex match for parsing. Whether that would be a speed gain or not I'm not sure.

Anyhoo...

designermonkey avatar Jan 16 '13 01:01 designermonkey

That looks scary.

michael-e avatar Jan 16 '13 01:01 michael-e