Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: doc type and script
06-12-2010, 02:53 PM #1
- Join Date
- Dec 2007
- on earth
- Thanked 2 Times in 2 Posts
doc type and script
I am having a hard time trying to understand this:
The script I am using does not work if I write doctype as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
Here is the link.
Have you got an idea about why it does not work with the full doc type?
Thanks a lot for having a look;
06-12-2010, 03:07 PM #2
- Join Date
- Mar 2007
- Thanked 2,223 Times in 2,210 Posts
- Blog Entries
The culprit is the above line. The attribute name on form is deprecated and so the old practice to refer a form like above won't work with a standard DOCTYPE.Code:var userInputs =
I'd recommend the following strict DOCTYPE.
Then change your code toCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Code:var userInputs =
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
Users who have thanked abduraooft for this post: