w3c

is there any css validator with CSS3 and vendor specific extensions support?

孤者浪人 提交于 2019-12-04 11:16:58
is there any css validator with CSS3 and vendor specific extensions support? I only want to see problem other than CSS 3 and vendor specific extensions related errors. And is there any better xhtml css validator than W3C's? GlenCrawford You can select "CSS Level 3" in the More options>Profile section of the W3C CSS Validator . Although this won't help with the vendor-specific errors. It looks like there is no intention to support these in the W3C validator . The W3C Validator unfortunately goes crazy over CSS3. This one may work for you CSS3 Validator 来源: https://stackoverflow.com/questions

FILTER_VALIDATE vs Preg_match. Which one to use?

南笙酒味 提交于 2019-12-04 10:59:12
To validate input date, both form URL or from a form, which technique do you usually use? I have been looking at PHP Filters but i have rarely see them on any code. I have usually seen the use of preg_mach, for example: $numbers = "/^[0-9]+$/D"; if (preg_match($numbers, $var)){ echo "is number"; } Instead of: if(!filter_var($var, FILTER_VALIDATE_INT)) echo "is number"; } Is there any advantage using one or another? Thanks! Php introduced the filer_ functionality for a wide range of types of variable validation since php 5.2. It's good practice to use the filter_var || filter_input for your

Is there an XHTML 5 validator?

末鹿安然 提交于 2019-12-04 10:50:54
Is there a validator specifically for XHTML 5, i.e. the XML serialization of HTML 5? The W3C validator supports the document types: HTML 5 (experimental) : which treats as valid various features that are not allowed in XML, such as implicitly closed <br> tags. several XHTML 1.0 and XHTML 1.1 doctypes, which don't recognize the new tags in HTML 5. Russ Clarke You can use Validator.nu (X)HTML5 Validator (Living Validator): http://html5.validator.nu/ Note that the "living validator" means that since the HTML 5 spec itself is constantly evolving, so does the validator - the results of your

HTML5 and RDFa support

匆匆过客 提交于 2019-12-04 10:47:17
问题 I'm about to introduce the Open Graph protocol to an existing HTML5 Web application and I'd like to include the necessary RDFa data without introducing any unnecessary crud. I've looked at the HTML+RDFa 1.1 draft and comparing it with Facebook's Open Graph protocol documentation, I just need to set the lang attribute on the html element and it's HTML5 ready: <html lang="en"> <head xmlns:og="http://opengraphprotocol.org/schema/"> <title>The Rock (1996)</title> <meta property="og:title" content

Why was ::selection removed from the CSS Selectors spec, and how does its specificity work against type selectors?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 10:31:15
问题 Some questions about using CSS to specify the color of selected text: https://developer.mozilla.org/En/CSS/::selection says that, ::selection was drafted for CSS3 Selectors but removed from the current CSS3 draft. Anyhow, it's implemented in browsers and support will continue. Why was it removed? Imagine that a rule like the following exists in the default CSS that's implemented by the browser: ::selection { background-color: Highlight; color: HighlightText; } Further imagine that a rule like

Is there a 3D format which is a 3D extension to SVG?

笑着哭i 提交于 2019-12-04 10:07:35
SVG is the W3C's standard for 2D vector graphics. Something quite solid. Is there a 3D version of SVG? A kind of extension of it, so converting from .SVG to .something and reverse is quite straight forward. No, there is no such standard extension to SVG as part of the W3C. The closest that exists is the W3C Community Group, "Declarative 3D for the Web Architecture Community Group" . Editorial: nor should there be. While SVG is great and vector, it is a presentation format, not a data-interchange format as you seek for 3D. For example, the painter's model of SVG describes the visual layering of

What is the best method to code physical address in html?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 09:08:00
What is the best method to code physical address in html ? in Semantic, Accessible and SEO way Use a Microformats vCard <div class="vcard"> <span class="fn">Gregory Peck</span> <a class="org url" href="http://www.commerce.net/">CommerceNet</a> <div class="adr"> <span class="type">Work</span>: <div class="street-address">169 University Avenue</div> <span class="locality">Palo Alto</span>, <abbr class="region" title="California">CA</abbr> <span class="postal-code">94301</span> <div class="country-name">USA</div> </div> <div class="tel"> <span class="type">Work</span> +1-650-289-4040 </div> <div

Can I combine local and remote dataset within SPARQL query?

北城余情 提交于 2019-12-04 07:24:00
I've been reading about SPARQL and RDF and please correct me if my reasoning about these technologies is wrong here. Assuming that we have a local SPARQL database called LOCAL.. and url to remote RDF file called URL_RDF. Can I write a script lets say in PHP which will do a SPARQL query like this ? Pseudo code. SELECT * FROM LOCAL,URL_RDF WHERE LOCAL.id=URL_RDF.id In other words can I combine sources within SPARQL query like this (remote file + local db) ? You can do this using the federation features in SPARQL 1.1. These are described at http://www.w3.org/TR/sparql11-federated-query , but to

Unable to load java class from w3c

浪子不回头ぞ 提交于 2019-12-04 06:26:12
问题 I am trying to do OPTICS-clustering with ELKI (http://elki.dbs.ifi.lmu.de/). I try do run the clustering with the provided gui, but then I get this exception: Error in starting visualizer window. java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGSVGElement at de.lmu.ifi.dbs.elki.visualization.gui.ResultWindow.<init>(Unknown Source) at de.lmu.ifi.dbs.elki.visualization.gui.ResultVisualizer$1.run(Unknown Source) at [...] Caused by: java.lang.ClassNotFoundException: org.w3c.dom.svg

How can I make background-size:cover work in IE10 without making attachment fixed?

丶灬走出姿态 提交于 2019-12-04 06:03:03
问题 My code: html { background-image:url('img.png'); background-repeat:no-repeat; background-position:center top; background-size:cover; } This works perfectly on Firefox and Chrome, but on IE the image doesn't get stretched at all. It will work if I set background-attachment to "fixed" but that isn't what I want. Every website I've looked at claims that these proprties are perfectly implement in IE, but they clearly aren't. 回答1: Troubleshoot CSS Background Size Cover It's a bit hard to