开发者

Does Non-Existing Attribute (For Browser) Will Break Something?

开发者 https://www.devze.com 2023-03-18 04:40 出处:网络
Sub-question for HTML Placeholder browser compatibility . I need to have that effect for my inputs and textareas. At the moment, I use JScript to do that. If wo开发者_C百科uld switch to \"placeholder\

Sub-question for HTML Placeholder browser compatibility . I need to have that effect for my inputs and textareas. At the moment, I use JScript to do that. If wo开发者_C百科uld switch to "placeholder" (HTML5 attribute)... does it break something in older browsers that don't support "placeholder"?

It would be great that if browser doesn't support it... it just ignores it. No "place-hold" text. That's all.


In the HTML, unsupported attributes are ignored.

0

精彩评论

暂无评论...
验证码 换一张
取 消