Ruby's Louvre

每天学习一点点算法

导航

2009年12月9日 #

利用mergeAttributes设置name属性

摘要: 在国外一博客看到的技巧,终于解决IE的这个老大难问题。我在IE的setAttribute bug也提到其解决方法,一是innerHTML,一是IE特别的creatElement使用方法,不过都是要求在生成DOM时一同搞定name属性,这种在DOM生成后再修改name属性的方法真是高明啊。介绍一下mergeAttributes 方法。它有两个参数oSource与 bPreserve : mergeA... 阅读全文

posted @ 2009-12-09 18:04 司徒正美 阅读(2606) 评论(7) 推荐(2) 编辑

This Week in HTML 5 – Episode 7

摘要: clickjacking.Welcome back to "This Week in HTML 5," where I'll try to summarize the major activity in the ongoing standards process in the WHATWG and W3C HTML Working Group. Work continued this week ... 阅读全文

posted @ 2009-12-09 11:25 司徒正美 阅读(793) 评论(0) 推荐(0) 编辑

This Week in HTML 5 – Episode 6

摘要: multimedia accessibility, Ogg Theora, and the year 2022.Welcome back to "This Week in HTML 5," where I'll try to summarize the major activity in the ongoing standards process in the WHATWG and W3C HTML Working Group. There is no big news this week. Work continued on last week's org 阅读全文

posted @ 2009-12-09 11:23 司徒正美 阅读(552) 评论(0) 推荐(0) 编辑

This Week in HTML 5 – Episode 5

摘要: XSLT, MathML, Web Forms 2, and some light reading on character encoding. Welcome back to "This Week in HTML 5," where I'll try to summarize the major activity in the ongoing standards process in the ... 阅读全文

posted @ 2009-12-09 11:21 司徒正美 阅读(593) 评论(0) 推荐(0) 编辑

This Week in HTML 5 – Episode 4

摘要: the W3C’s HTML 5 validator, SVG-in-HTML, and the proper way to provide alternate text for Rorschach inkblots.Welcome back to "This Week in HTML 5," where I'll try to summarize the major activity in th... 阅读全文

posted @ 2009-12-09 11:21 司徒正美 阅读(548) 评论(0) 推荐(0) 编辑

This Week in HTML 5 – Episode 3

摘要: the event loop, the onhashchange event, and content sniffing for SVG images. Welcome back to "This Week in HTML 5," where I'll try to summarize the major activity in the ongoing standards process in t... 阅读全文

posted @ 2009-12-09 11:14 司徒正美 阅读(577) 评论(0) 推荐(0) 编辑

This Week in HTML 5 – Episode 2

摘要: the window.navigator object, meta http-equiv=”Content-Language”, the Worker object, outerHTML, insertAdjacentHTML(), and the continuing saga of the alt attribute.Welcome back to "This Week in HTML 5,"... 阅读全文

posted @ 2009-12-09 11:11 司徒正美 阅读(612) 评论(0) 推荐(0) 编辑

This Week in HTML 5 – Episode 1

摘要: Web Workers, and how to specify alternate text for images you know nothing about.Welcome to a new semi-regular column, "This Week in HTML 5," where I'll try to summarize the major activity in the ongo... 阅读全文

posted @ 2009-12-09 11:05 司徒正美 阅读(846) 评论(1) 推荐(0) 编辑

Why do we have an IMG element?

摘要: I’d like to propose a new, optional HTML tag: IMG Required argument is SRC="url". This names a bitmap or pixmap file for the browser to attempt to pull over the network and interpret as an imag... 阅读全文

posted @ 2009-12-09 11:05 司徒正美 阅读(1612) 评论(1) 推荐(0) 编辑