惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
博客园 - 【当耐特】
博客园 - 三生石上(FineUI控件)
量子位
aimingoo的专栏
aimingoo的专栏
V
V2EX
Vercel News
Vercel News
B
Blog
M
MIT News - Artificial intelligence
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
N
News and Events Feed by Topic
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
S
Secure Thoughts
U
Unit 42
博客园 - 叶小钗
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Hacker News - Newest:
Hacker News - Newest: "LLM"
N
News | PayPal Newsroom
Help Net Security
Help Net Security
S
Security Affairs
Microsoft Security Blog
Microsoft Security Blog
W
WeLiveSecurity
博客园 - Franky
Forbes - Security
Forbes - Security
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
Schneier on Security
Schneier on Security
I
InfoQ
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Webroot Blog
Webroot Blog
AWS News Blog
AWS News Blog
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
C
CERT Recently Published Vulnerability Notes
N
News and Events Feed by Topic
阮一峰的网络日志
阮一峰的网络日志
L
Lohrmann on Cybersecurity
SecWiki News
SecWiki News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
J
Java Code Geeks

博客园 - JBoy

Update Cache js树 火狐对ajax同步的支持 快乐工作,好好学习! 年末琐事 做一个小总结 基于AJAX的Window资源管理器 DotText学习 开学前一周计划 终于知道如何用VS2005在类图状态下实现继承 可爱的病毒 悬棺 Factory Method And Abstract Factory .NET2.0中有关加密解密的知识 请看下面这段代码 - JBoy - 博客园 观察者模式与单例模式 Javascript真的是安全的脚本吗? Frontpage-Dreamweave-VisoStudio-Dreamweave-Ultraeditor 可怜的公平
JavaScript对DOM的解析 - JBoy - 博客园
JBoy · 2008-03-13 · via 博客园 - JBoy

用JavaScript解析DOM,在不现的浏览器上有不同的实现。
以后注意一下就可以了。

<ul> 
            
<li>1</li> 
            
<li>2</li> 
            
<ol>3</ol>
        
</ul> <!-- IE: 2; FF: 7 -->
        
        
        
<div id="main">
            
<div></div>
            
<div></div>
            
<input />
        
</div><!-- IE: 4; FF: 7 -->
        
        
<div><div></div><div></div><input /></div>

<div id="main">
            
<div></div>
            
<div></div>
            
<input type="password" name="password1"></input>
        
</div>
<!-- IE对<input ></input>的解析会出现错误,将一个标签解析成两个 -->