w3c

How to validate HTML matches W3C standards

I have a project that generates HTML pages using velocity template and Java. But most of the pages do not comply with W3C standards. How can I validate those HTML pages and get a log telling me what errors/warnings on what pages? Then I can fix the errors manually. I have tried JTidyFilter but that doesn't work for me. ...

Is there a way to use w3c-validator as a local instance using either a session cookie or using username and password?

I would like to integrate the usage of w3c-validator into unit testing. Is there a way to get around authentication to do this? ...

Is 5MB the de facto limit for W3C Web Storage?

I am looking into using browser sessionStorage for a web application, and was trying to find current information on size limitations. It appears most desktop browsers have imposed a 5MB limit. However, I am not finding many recent articles nor information on the mobile browsers. The Disk space of the W3C Web Storage specification says...

Why do inputs and selects use different box models?

It appears (at least in IE 8 and Firefox 3) that for <input> elements the width refers to the content, but for <select> elements the width refers to the content + borders. I am explicitly specifying the width in the CSS style. What's the deal? I would have thought that both are inline replaced elements and would behave identically. I...

Should I remove trailing slashes in meta tags?

Hi All, W3c markup validation is asking me to remove trailing slashes on my page. Is this correct?...and will my page still be compliant in all browsers? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <meta http-equiv="content-style-type" content="text/css" **/**> Many tha...

Extended Log File Format Parser in Ruby

Hi, I'm looking for a ruby parser for the W3C Extended Log File Format. http://www.w3.org/TR/WD-logfile.html Ideally it would generate a multidimensional array based on the fields in the log file. I'm thinking something similar to how FasterCSV (http://fastercsv.rubyforge.org/) handles CSV files. Does anyone know if such a library ex...

How to develop an own browser for Android? How to parse HTML, JS & Co.?

Like the title says, I am thinking about developing my own browser for Android devices. My first thought is to know what kind of possibilities I have, before I begin creating my software architecture. Are there any (open?) Browser Engines you could include into your library and reuse them? (There are some unknown browsers in the Android...

Why do elements look different with the XHTML Transitional doctype applied?

I have a simple page with two elements: <html> <body> <input type="text" style="height: 18px; width: 120px" /><br/> <select style="height: 18px; width: 120px"> <option>test</option> </select> </body> </html> In an attempt to make it w3c compliant and to display consistently across browsers, I've added a DOCTYPE e...

AJAX requests in mobile widgets

I've added the code for an AJAX call in my mobile widget but I don't get a response. Any ideas? $.ajax({ type: "GET", url: "http://www.tfl.gov.uk/tfl/syndication/feeds/disruptions-tube-offset-now.xml", dataType: "xml", success: function(xml) {} }); ...

Synchronous AJAX requests in mobile widgets

I'm having troubles with a synchronous AJAX call in a JIL widget. Only the asynchronous version seems to work. What call types do you usually use sync or async? ...

HTML5 LocalStorage size

Hello, Can anyone explain me the size of window.localStorage (for example, 5MB in Firefox) is 5MB for each scope or only for all? ...

Storing data in mobile (JIL/W3C) widgets

How can I store data in a mobile widget (JIL/W3C). Is Widget.setPreferenceForKey() the only option? ...

W3C - ID Tag for <style>

Hi, is this allowed? <style id="my_id_0" type="text/css"> ... Thanks in advance! Peter ...

Why is ECMAScript still not a recommendation of W3C?

In theory browsers could support several programming languages for client-side scripting of web pages. In practice, ECMAScript is the only one widely implemented and used in all browsers. So for most people, it is an integral part of the web. However, it has never been promoted as a recommendation by the W3C for web page scripting. And ...

Should I use Table.cells[]?

Hi there. I'm currently trying to write some javascript to loop through the elements in a table, but was wondering what the best practise was. I could just call .cells[] on my table object to get all of the cells in the table, but the W3Schools page says that this is not a W3C standard - should I avoid it then? The other option is to us...

HTML <inline> can contain another <inline> element?

Sounds like that is possible, per W3C am able to validate the following HTML code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <title>Inline can another inline?</title> </head> <body> <div> <span>some text <span>comes here</span>.</span> </div> </body> </htm...

Validate an XSD using Java

I would like to automatically validate that an XSD Schema is correct. Is there a java API or something Í can call to do this automatically? ...

How do I install OpenSP 1.5.2, the SGML (and XML) parser for w3c local validator on windows?

How do I install OpenSP 1.5.2, the SGML (and XML) parser for w3c local validator on windows? ...

there is no attribute "allowtransparency"

I am looking for some alternate way to do: <iframe transparency=true ... When i do the w3c validation, I am getting the error: Column 31: there is no attribute "allowtransparency" Hi if use this css .iframe-trans-fix{ opacity: 0; filter:alpha(opacity=0); } for above snippet am getting blank iframe, ...

w3validation for favi-icon

<LINK REL="SHORTCUT ICON" HREF="favicon.ico"> getting w3validation for the above tag , sample : Error Line 13, Column 11: there is no attribute "REL" <LINK REL="SHORTCUT ICON" HREF="favicon.ico" /> ...