diff options
author | ot <ot@localhost> | 2007-04-12 07:18:15 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-04-12 07:18:15 +0000 |
commit | 70c050ad6210c2f59de0b572e26b3473c134a55a (patch) | |
tree | 5cfe6d90c49308afc2fc777e1387276ed439d9f0 /htdocs/scripts | |
parent | 660a791b18379b02a8f515c08c9967c422ca6684 (diff) | |
download | markup-validator-70c050ad6210c2f59de0b572e26b3473c134a55a.zip markup-validator-70c050ad6210c2f59de0b572e26b3473c134a55a.tar.gz markup-validator-70c050ad6210c2f59de0b572e26b3473c134a55a.tar.bz2 |
making prefilling of document structure on the server-side rather than via scripting.
See: http://lists.w3.org/Archives/Public/www-validator/2007Mar/0078.html
+thread
and: http://lists.w3.org/Archives/Public/www-validator/2007Apr/0049.html
+thread
Diffstat (limited to 'htdocs/scripts')
-rw-r--r-- | htdocs/scripts/prefill.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/htdocs/scripts/prefill.js b/htdocs/scripts/prefill.js deleted file mode 100644 index 3c9074d..0000000 --- a/htdocs/scripts/prefill.js +++ /dev/null @@ -1,19 +0,0 @@ -// prefill validator "direct input" form with basic document structure - - -var text_xhtml1 = '<?xml version="1.0" encoding="utf-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n <head>\n <title>I AM YOUR DOCUMENT TITLE REPLACE ME</title>\n <meta http-equiv="content-type" content="application/xhtml+xml;charset=utf-8" />\n <meta http-equiv="content-style-type" content="text/css" />\n </head>\n <body>\n <div>… Your HTML content here …</div>\n</body>\n </html>'; - -var text_html401 = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"\n "http://www.w3.org/TR/html4/strict.dtd">\n<html>\n<head>\n <title>I AM YOUR DOCUMENT TITLE REPLACE ME</title>\n <meta http-equiv="content-type" content="text/html;charset=utf-8">\n <meta http-equiv="Content-Style-Type" content="text/css">\n</head>\n<body>\n <div>… Your HTML content here …</div>\n</body>\n</html>'; - -function prefill_document(textarea_id, doctype) { - var txtarea = document.getElementById(textarea_id); - // first we remove all children nodes - if (doctype == "html401") { - txtarea.value = text_html401; - } - else { - txtarea.value = text_xhtml1; - } -// txtarea.select(); - txtarea.focus(); -}; |