On 15 Nov 2009, at 16:39, Jim Hayward wrote:
> Hi All,
> Currently the auto-completion for HTML documents only works for
> uppercase tags. Since most people probably no longer use uppercase tags
> this makes the auto-completion not very useful for HTML documents.
> I was considering adding an option to preferences to use lowercase HTML
> Opinions or other options?
Auto complete works from two sources.
1) The tag trees (the html tag tree is all uppercase, this could, and probably should be changed to lowercase)
2) The dtd in use by the document.
As xml documents use doctypes as well then the option would need to only apply to HTML documents (not xHTML, HTML 5 may be xml, and may not be so that would be something that would need to be detected, not sure how it indicates this)
screem_page_is_markup(page) && ! screem_page_is_xml(page) might be enough to determine this (depends what HTML 5 does), although there is a TODO on screem_page_is_xml about caching the result.
I'm not sure if there needs to be an option, perhaps it should just automatically use lowercase. If the option is put in then it should probably default to lowercase.