javascript - getting an error there is no attribute "placeholder" in xhtml strict 1.0 -


i realize placeholder html 5 believe. there alternative placeholder?

i have use xhtml strict 1.0 it's requirement.

xhtml support placeholder because xhtml mix of xml & html. function works won't validate because validation methods haven't caught new coding principles. use alternative validate;

<input type="text" onfocus="if (this.value==this.defaultvalue) this.value = ''" onblur="if (this.value=='') this.value = this.defaultvalue" value="your placeholder text here" />


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -