[TxMt] Style html tag included in CSS scope

Ed Singleton singletoned at gmail.com
Mon Aug 14 09:48:05 UTC 2006

The experimental html bundle is great, and I'm all for the
sctrictness, except that I'm using kid templates which have an
expanded namespace (additional attributes like py:layout="blah").

Does xhtml strict allow an expanded namespace (properly declared with

Either way is it possible/reasonably easy to set up the new grammar to
accept them?  (Possibly by me hacking my local version of it?)

Incidentally, this is all because I set up a command that uses csstidy
to reformat my css code and it doesn't like receiving the <script>
tag.  I could just always select the css I want formatted but I'm
proactively lazy.



On 8/11/06, Michael Sheets <mummer at whitefalls.org> wrote:
> > In a html document the <style> tag seems to be included in the scope
> > of source.css.embedded.html whereas surely it isn't css at all, only
> > the contents between the tag are css.
> It's a known issue with the HTML grammar; I've been trying to work
> out in my head how to rearrange the HTML grammars to be less numerous
> etc. Once the best approach is figured out they just need to be re-
> written. In other words it could be fixed, but probably best to put
> the effort toward a new grammar.
> There is a grammar that I made as a proof of concept in the
> repository Experimental HTML; but it's highly strict, and only
> supports XHTML 1.0 Strict. On the flipside if your using that it
> works pretty well. :)
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

More information about the textmate mailing list