- "The character set for XUL, DTD, script, and properties files is UTF-8 which is not easily readable."
- This needs explanation. "Not easily readable" sounds weird. How is DTD being UTF-8 related to \uXXXX escapes?
- "Convenience constants for interface names should be prefixed with nsI"
- This makes little sense for mozI interfaces. Are the short names like nsIWBP a good idea anyway?
- "Duplicate variable declaration"
- This is not a JS strict warning anymore (iirc ben lobbied for that, need to find a bug and update the text in the article)
--Nickolay 14:30, 9 June 2006 (PDT)
Moving from KB
I'm looking into moving the info from this KB article here. There are two things that page has that this doesn't, and I'm not sure whether these are actual guidelines in use.
- Private members should start with _
- Unique prefixes or enclosing functions with a uniquely-named object (more important to extension developers?)
--Np 15:51, 31 August 2006 (PDT)
- As far as I can see, people are following the first rule in general, and we should mention the unique name rule, although you're right, it's mostly for extension developers and may even belong on a page of its own, linked from this page. --Nickolay 09:51, 3 September 2006 (PDT)
- I've added the unique name thing, saying its for people working in overlays rather than extension developers.--Np 14:33, 22 May 2007 (PDT)
There are no recommendations about documenting comments.
--Legaev Andrey 02:56, 21 February 2008 (PST)