Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

BugFix: X(utils.extend2)函数合并到目标对象上,造成$nonBodyContent值错误。 #3259

Open
wants to merge 1 commit into
base: dev-1.5.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _src/core/dtd.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var dtd = (dom.dtd = (function() {
Q = _({ li: 1, ol: 1, ul: 1 }),
R = _({ style: 1, script: 1 }),
S = _({ base: 1, link: 1, meta: 1, title: 1 }),
T = X(S, R),
T = X({}, S, R),
U = _({ head: 1, body: 1 }),
V = _({ html: 1 });

Expand Down Expand Up @@ -217,7 +217,7 @@ var dtd = (dom.dtd = (function() {
// $ 表示自定的属性

// body外的元素列表.
$nonBodyContent: X(V, U, S),
$nonBodyContent: X({}, V, U, S),

//块结构元素列表
$block: block,
Expand Down