w3c

w3c document.forms[0].fieldname equivalent

I've been using document.forms[0].fieldname.value to get values in javascript from a form, but I'd like to use a name to reference the field and not a 0, what would be the equivalent these days since isn't compliant? ...

JavaScript tags, performance and W3C

Today I was looking for website optimization content and I found an article talking about move JavaScript scripts to the bottom of the HTML page. Is this valid with W3C's recommendations? I learned that all JavaScript must be inside of head tag... Thank you. ...

Why can't I start XML entity names with 'xml''?

<XmlInfo /> I ran into problem using Perl's popular SOAP::Lite module, where it wouldn't accept XML entity names starting with "xml" (regardles letters' case). The author of the module replied to email saying that entity names starting with "xml" are not permitted in XML specification, but I couldn't find it in W3C's documents for 1.0 ...

Opengraph W3C valid ?

Hi, I would like to know if the opengraph markup is W3C valid, I'm getting the following error when I try to validate it: Line 14, Column 17: there is no attribute "PROPERTY" <meta property="og:site_name" content="sitename"> In case it's not valid, will it impact my pagerank and other search engines algo? Is it possible to cloak tho...

What language types are allowed in the HTML script tag?

I was looking at the W3C specs for the script tag, and I noticed you can specify VBScript and TCL as a language type. This is extremely new to me; I've only ever seen Javascript used with the script tag. Why aren't other languages more commonly used, and is there a complete list of languages you can use within this tag? ...

What is the role of name="..." attribute in input?

In this form code what is the role of name="" attribute? name="s" and name="submit". Is it necessary to add? <form action="/index.php" method="get"> <fieldset> <legend>Search</legend> <label for="s"><span>Search WaSP</span> <input value="" name="s" id="s"></label> <input type="submit" value="Go!" name="submit" > ...

How to digitally sign XML document using Oracle 9i PL/SQL

Let's say we have a simple XML document (doc.xml) like this: <?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns="http://www.someexample.com/examples"&gt; <Salutation Id="test"> Welcome! </Salutation> </Envelope> And a certificate file:test.p12 How to make a solution using Oracle 9i PL/SQL that digitally signs XML document...

Why do mozilla and webkit prepend -moz- and -webkit- to CSS3 rules?

CSS3 rules bring lots of interesting features. Take border-radius, for example. The standard says that if you write this rule: div.rounded-corners { border-radius: 5px; } I should get a 5px border radius. But neither mozilla nor webkit implement this. However, they implement the same thing, with the same parameters, with a differe...

Pipe Chars in HTML Classes

I couldn't find anything in the W3C docs that said pipe chars, |, aren't allowed, for instance: <div class="class1|class2"> Don't worry about what I might be using it for. I was just wondering if it's "legal". ...

HTML5: HTML VS XHTML spec question regarding comments

In the W3C working draft for HTML5 here's a line I find confusing: http://www.w3.org/TR/html5/introduction.html#html-vs-xhtml Comments that contain the string "-->" can be represented in the DOM but not in the HTML syntax or in XML. I can interpret this in two different ways: Comments that contain the string "-->" can be rep...

how to validate php file with w3c.org

Hi I want to validate my php project to meet the w3 standard so ...Can some one explain how to do the php file validation usind w3c.org ...

Gecko/Firefox support for HTML5 Notifications

Hi Folks, I'm wondering if there is any build-in support for the HTML5 Notification feature in Gecko browsers so far? Maybe some hidden developer thingy ? I'm aware of WebKits window.webkitNotifications which works great, so, is there a Firefox implementation ? update After searching and reading some w3c HTML5 specs, I'm maybe a litt...

Local web apps and W3C standards.

If am writing a local app that will only run using a specific browser, am i setting my self up by slightly ignoring W3C's standards? I ask this question because in this app i am thinking of using custom HTML tags, custom attributes, etc... Thanks in advance guys. ...

FileZilla is saying there is an error in the W3.org link!

I just got my free web hosting set up (trigoblocks.comuf.com), I connected via FileZilla FTP and uploaded my files. The error I get is "Parse error: syntax error, unexpected T_STRING in /home/a3639879/public_html/header.php on line 1". Header.php line 1-2: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...

w3c validation error with utf-8

When I try to validate a certain page I get the below error: Sorry, I am unable to validate this document because on line 136 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the charac...

What is the point of CSS collapsing margins?

The CSS2 box model tells us that adjoining margins collapse. I find it quite annoying, being the source of many design bugs. I hope that by understanding the purpose of collapsing margins, I will understand when to use them and how to avoid them when they are not needed. What is the purpose of this feature? ...

Best practice for trapping certain keyCodes in onkeypress in Javascript

I'm somewhat curious about the "best practices" when it comes to trapping the ENTER key in an html input tag. In IE, it's easy. window.event.keyCode will be 13 when enter is pressed and it's pretty straight forward. In all other browsers, an arguments object is passed into the function. However, this seems to basically force you to l...

Is it necessary to have <tbody> in every table?

Is it necessary to have <tbody> in every table? According to Standards. ...

Converting DOMTimeStamp to localized HH:MM:SS MM-DD-YY via Javascript

The W3C Geolocation API (among others) uses DOMTimeStamp for its time-of-fix. This is "milliseconds since the start of the Unix Epoch". What's the easiest way to convert this into a human readable format and adjust for the local timezone? ...

How to create new node with JTidy

Hi, I am trying to add a meta tag to head section of an html file using JTidy. Problem is I couldn't figure out a way of creating a new node and setting it's attributes. Thanks. ...