WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 123949
Hoist <template> to head when found between </head> and <body> for consistency with <script>
https://bugs.webkit.org/show_bug.cgi?id=123949
Summary
Hoist <template> to head when found between </head> and <body> for consistenc...
Ryosuke Niwa
Reported
2013-11-06 20:32:34 PST
Merge
https://chromium.googlesource.com/chromium/blink/+/835fb468fd211054a920fb7612a6dc5043662495
Attachments
Patch
(6.20 KB, patch)
2013-11-20 01:06 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Tweaked the change log a little
(6.22 KB, patch)
2013-11-20 01:07 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Patch for landing
(6.31 KB, patch)
2013-11-20 22:27 PST
,
Ryosuke Niwa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ryosuke Niwa
Comment 1
2013-11-20 01:06:01 PST
Created
attachment 217402
[details]
Patch
Ryosuke Niwa
Comment 2
2013-11-20 01:07:29 PST
Created
attachment 217404
[details]
Tweaked the change log a little
Antti Koivisto
Comment 3
2013-11-20 16:46:25 PST
Comment on
attachment 217404
[details]
Tweaked the change log a little View in context:
https://bugs.webkit.org/attachment.cgi?id=217404&action=review
> Source/WebCore/html/parser/HTMLTreeBuilder.cpp:1644 > +#if ENABLE(TEMPLATE_ELEMENT) > + if (isParsingFragment()) > +#else > + ASSERT(isParsingFragment()); > +#endif > + item = HTMLStackItem::create(m_fragmentContext.contextElement(), HTMLStackItem::ItemForContextElement);
This is somewhat ugly. It is nicer to do something like this: #if ENABLE(TEMPLATE_ELEMENT) bool shouldCreateItem = isParsingFragment(); #else ASSERT(isParsingFragment()); bool shouldCreateItem = true; #endif if (shouldCreateItem) ...
Ryosuke Niwa
Comment 4
2013-11-20 22:22:54 PST
(In reply to
comment #3
) >
> This is somewhat ugly. It is nicer to do something like this: > > #if ENABLE(TEMPLATE_ELEMENT) > bool shouldCreateItem = isParsingFragment(); > #else > ASSERT(isParsingFragment()); > bool shouldCreateItem = true; > #endif > if (shouldCreateItem) ...
Makes sense. Done that.
Ryosuke Niwa
Comment 5
2013-11-20 22:27:48 PST
Created
attachment 217519
[details]
Patch for landing
WebKit Commit Bot
Comment 6
2013-11-20 22:57:45 PST
Comment on
attachment 217519
[details]
Patch for landing Clearing flags on attachment: 217519 Committed
r159610
: <
http://trac.webkit.org/changeset/159610
>
WebKit Commit Bot
Comment 7
2013-11-20 22:57:48 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug