Home Download Buy Blog Forum Support

Update for HTML completions

Update for HTML completions

Postby rchl on Sat Apr 23, 2011 8:22 pm

I set out to update default html completions because I saw some wrong assumptions there.

Changes include:
Made "button" and "option" have ending tag like there are supposed to in HTML.
Added "iframe".
Modified "param" which is used as an child of object and I've never seen it without "name" and "value" attributes defined so I've included them in completions.

I've done changes both in lowercase and uppercase variants but personally I don't understand what uppercase variant of completions is useful for.

Hope these changes can make into default files if there are no objections.
Attachments
HTML.sublime-completions.zip
(1.85 KiB) Downloaded 103 times
rchl
 
Posts: 142
Joined: Fri Mar 04, 2011 11:02 pm

Re: Update for HTML completions

Postby tux. on Sun Apr 24, 2011 12:47 pm

Good idea, thanks. :)
Image
tux.
 
Posts: 96
Joined: Thu Apr 14, 2011 11:04 am

Re: Update for HTML completions

Postby jbrooksuk on Tue Apr 26, 2011 8:10 am

What specification have you done this for?
jbrooksuk
 
Posts: 689
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Update for HTML completions

Postby rchl on Tue Apr 26, 2011 8:51 am

According to http://www.w3.org/TR/html401/ but mostly according to common sense.

Common sense part was changing "option" to have ending tag. Ending tag is optional according to spec but you most likely want to specify text for option and that is done more commonly by enclosing text in the tag itself rather than using label attribute.
rchl
 
Posts: 142
Joined: Fri Mar 04, 2011 11:02 pm

Re: Update for HTML completions

Postby jbrooksuk on Tue Apr 26, 2011 10:26 am

rchl wrote:According to http://www.w3.org/TR/html401/ but mostly according to common sense.

Common sense part was changing "option" to have ending tag. Ending tag is optional according to spec but you most likely want to specify text for option and that is done more commonly by enclosing text in the tag itself rather than using label attribute.

Cool.

HTML5 is on the way. What about including some things from there? Yes, I know it wont be finalised till around 2014 but so? :D
jbrooksuk
 
Posts: 689
Joined: Sun Apr 11, 2010 10:37 am
Location: England


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 10 guests