HTMLElement.cpp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. /*
  2. * Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <AK/StringBuilder.h>
  7. #include <LibWeb/ARIA/Roles.h>
  8. #include <LibWeb/Bindings/ExceptionOrUtils.h>
  9. #include <LibWeb/DOM/Document.h>
  10. #include <LibWeb/DOM/IDLEventListener.h>
  11. #include <LibWeb/DOM/ShadowRoot.h>
  12. #include <LibWeb/HTML/BrowsingContext.h>
  13. #include <LibWeb/HTML/DOMStringMap.h>
  14. #include <LibWeb/HTML/EventHandler.h>
  15. #include <LibWeb/HTML/Focus.h>
  16. #include <LibWeb/HTML/HTMLAnchorElement.h>
  17. #include <LibWeb/HTML/HTMLAreaElement.h>
  18. #include <LibWeb/HTML/HTMLBaseElement.h>
  19. #include <LibWeb/HTML/HTMLBodyElement.h>
  20. #include <LibWeb/HTML/HTMLElement.h>
  21. #include <LibWeb/HTML/NavigableContainer.h>
  22. #include <LibWeb/HTML/VisibilityState.h>
  23. #include <LibWeb/HTML/Window.h>
  24. #include <LibWeb/Infra/CharacterTypes.h>
  25. #include <LibWeb/Infra/Strings.h>
  26. #include <LibWeb/Layout/Box.h>
  27. #include <LibWeb/Layout/BreakNode.h>
  28. #include <LibWeb/Layout/TextNode.h>
  29. #include <LibWeb/Painting/PaintableBox.h>
  30. #include <LibWeb/UIEvents/EventNames.h>
  31. #include <LibWeb/UIEvents/FocusEvent.h>
  32. #include <LibWeb/UIEvents/MouseEvent.h>
  33. #include <LibWeb/WebIDL/DOMException.h>
  34. #include <LibWeb/WebIDL/ExceptionOr.h>
  35. namespace Web::HTML {
  36. JS_DECLARE_ALLOCATOR(HTMLElement);
  37. HTMLElement::HTMLElement(DOM::Document& document, DOM::QualifiedName qualified_name)
  38. : Element(document, move(qualified_name))
  39. {
  40. }
  41. HTMLElement::~HTMLElement() = default;
  42. void HTMLElement::initialize(JS::Realm& realm)
  43. {
  44. Base::initialize(realm);
  45. set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLElementPrototype>(realm, "HTMLElement"_fly_string));
  46. m_dataset = DOMStringMap::create(*this);
  47. }
  48. void HTMLElement::visit_edges(Cell::Visitor& visitor)
  49. {
  50. Base::visit_edges(visitor);
  51. visitor.visit(m_dataset);
  52. }
  53. // https://html.spec.whatwg.org/multipage/dom.html#dom-dir
  54. StringView HTMLElement::dir() const
  55. {
  56. // FIXME: This should probably be `Reflect` in the IDL.
  57. // The dir IDL attribute on an element must reflect the dir content attribute of that element, limited to only known values.
  58. auto dir = deprecated_attribute(HTML::AttributeNames::dir);
  59. #define __ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTE(keyword) \
  60. if (dir.equals_ignoring_ascii_case(#keyword##sv)) \
  61. return #keyword##sv;
  62. ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTES
  63. #undef __ENUMERATE_HTML_ELEMENT_DIR_ATTRIBUTE
  64. return {};
  65. }
  66. void HTMLElement::set_dir(String const& dir)
  67. {
  68. MUST(set_attribute(HTML::AttributeNames::dir, dir));
  69. }
  70. bool HTMLElement::is_editable() const
  71. {
  72. switch (m_content_editable_state) {
  73. case ContentEditableState::True:
  74. return true;
  75. case ContentEditableState::False:
  76. return false;
  77. case ContentEditableState::Inherit:
  78. return parent() && parent()->is_editable();
  79. default:
  80. VERIFY_NOT_REACHED();
  81. }
  82. }
  83. StringView HTMLElement::content_editable() const
  84. {
  85. switch (m_content_editable_state) {
  86. case ContentEditableState::True:
  87. return "true"sv;
  88. case ContentEditableState::False:
  89. return "false"sv;
  90. case ContentEditableState::Inherit:
  91. return "inherit"sv;
  92. }
  93. VERIFY_NOT_REACHED();
  94. }
  95. // https://html.spec.whatwg.org/multipage/interaction.html#contenteditable
  96. WebIDL::ExceptionOr<void> HTMLElement::set_content_editable(StringView content_editable)
  97. {
  98. if (content_editable.equals_ignoring_ascii_case("inherit"sv)) {
  99. remove_attribute(HTML::AttributeNames::contenteditable);
  100. return {};
  101. }
  102. if (content_editable.equals_ignoring_ascii_case("true"sv)) {
  103. MUST(set_attribute(HTML::AttributeNames::contenteditable, "true"_string));
  104. return {};
  105. }
  106. if (content_editable.equals_ignoring_ascii_case("false"sv)) {
  107. MUST(set_attribute(HTML::AttributeNames::contenteditable, "false"_string));
  108. return {};
  109. }
  110. return WebIDL::SyntaxError::create(realm(), "Invalid contentEditable value, must be 'true', 'false', or 'inherit'"_fly_string);
  111. }
  112. void HTMLElement::set_inner_text(StringView text)
  113. {
  114. remove_all_children();
  115. MUST(append_child(document().create_text_node(MUST(String::from_utf8(text)))));
  116. set_needs_style_update(true);
  117. }
  118. String HTMLElement::inner_text()
  119. {
  120. StringBuilder builder;
  121. // innerText for element being rendered takes visibility into account, so force a layout and then walk the layout tree.
  122. document().update_layout();
  123. if (!layout_node())
  124. return text_content().value_or(String {});
  125. Function<void(Layout::Node const&)> recurse = [&](auto& node) {
  126. for (auto* child = node.first_child(); child; child = child->next_sibling()) {
  127. if (is<Layout::TextNode>(child))
  128. builder.append(verify_cast<Layout::TextNode>(*child).text_for_rendering());
  129. if (is<Layout::BreakNode>(child))
  130. builder.append('\n');
  131. recurse(*child);
  132. }
  133. };
  134. recurse(*layout_node());
  135. return MUST(builder.to_string());
  136. }
  137. // https://www.w3.org/TR/cssom-view-1/#dom-htmlelement-offsetparent
  138. JS::GCPtr<DOM::Element> HTMLElement::offset_parent() const
  139. {
  140. const_cast<DOM::Document&>(document()).update_layout();
  141. // 1. If any of the following holds true return null and terminate this algorithm:
  142. // - The element does not have an associated CSS layout box.
  143. // - The element is the root element.
  144. // - The element is the HTML body element.
  145. // - The element’s computed value of the position property is fixed.
  146. if (!layout_node())
  147. return nullptr;
  148. if (is_document_element())
  149. return nullptr;
  150. if (is<HTML::HTMLBodyElement>(*this))
  151. return nullptr;
  152. if (layout_node()->is_fixed_position())
  153. return nullptr;
  154. // 2. Return the nearest ancestor element of the element for which at least one of the following is true
  155. // and terminate this algorithm if such an ancestor is found:
  156. // - The computed value of the position property is not static.
  157. // - It is the HTML body element.
  158. // - The computed value of the position property of the element is static
  159. // and the ancestor is one of the following HTML elements: td, th, or table.
  160. for (auto* ancestor = parent_element(); ancestor; ancestor = ancestor->parent_element()) {
  161. if (!ancestor->layout_node())
  162. continue;
  163. if (ancestor->layout_node()->is_positioned())
  164. return const_cast<Element*>(ancestor);
  165. if (is<HTML::HTMLBodyElement>(*ancestor))
  166. return const_cast<Element*>(ancestor);
  167. if (!ancestor->layout_node()->is_positioned() && ancestor->local_name().is_one_of(HTML::TagNames::td, HTML::TagNames::th, HTML::TagNames::table))
  168. return const_cast<Element*>(ancestor);
  169. }
  170. VERIFY_NOT_REACHED();
  171. }
  172. // https://www.w3.org/TR/cssom-view-1/#dom-htmlelement-offsettop
  173. int HTMLElement::offset_top() const
  174. {
  175. // 1. If the element is the HTML body element or does not have any associated CSS layout box
  176. // return zero and terminate this algorithm.
  177. if (is<HTML::HTMLBodyElement>(*this))
  178. return 0;
  179. // NOTE: Ensure that layout is up-to-date before looking at metrics.
  180. const_cast<DOM::Document&>(document()).update_layout();
  181. if (!layout_node())
  182. return 0;
  183. // 2. If the offsetParent of the element is null
  184. // return the y-coordinate of the top border edge of the first CSS layout box associated with the element,
  185. // relative to the initial containing block origin,
  186. // ignoring any transforms that apply to the element and its ancestors, and terminate this algorithm.
  187. auto offset_parent = this->offset_parent();
  188. if (!offset_parent || !offset_parent->layout_node()) {
  189. auto position = layout_node()->box_type_agnostic_position();
  190. return position.y().to_int();
  191. }
  192. // 3. Return the result of subtracting the y-coordinate of the top padding edge
  193. // of the first box associated with the offsetParent of the element
  194. // from the y-coordinate of the top border edge of the first box associated with the element,
  195. // relative to the initial containing block origin,
  196. // ignoring any transforms that apply to the element and its ancestors.
  197. auto offset_parent_position = offset_parent->layout_node()->box_type_agnostic_position();
  198. auto position = layout_node()->box_type_agnostic_position();
  199. return position.y().to_int() - offset_parent_position.y().to_int();
  200. }
  201. // https://www.w3.org/TR/cssom-view-1/#dom-htmlelement-offsetleft
  202. int HTMLElement::offset_left() const
  203. {
  204. // 1. If the element is the HTML body element or does not have any associated CSS layout box return zero and terminate this algorithm.
  205. if (is<HTML::HTMLBodyElement>(*this))
  206. return 0;
  207. // NOTE: Ensure that layout is up-to-date before looking at metrics.
  208. const_cast<DOM::Document&>(document()).update_layout();
  209. if (!layout_node())
  210. return 0;
  211. // 2. If the offsetParent of the element is null
  212. // return the x-coordinate of the left border edge of the first CSS layout box associated with the element,
  213. // relative to the initial containing block origin,
  214. // ignoring any transforms that apply to the element and its ancestors, and terminate this algorithm.
  215. auto offset_parent = this->offset_parent();
  216. if (!offset_parent || !offset_parent->layout_node()) {
  217. auto position = layout_node()->box_type_agnostic_position();
  218. return position.x().to_int();
  219. }
  220. // 3. Return the result of subtracting the x-coordinate of the left padding edge
  221. // of the first CSS layout box associated with the offsetParent of the element
  222. // from the x-coordinate of the left border edge of the first CSS layout box associated with the element,
  223. // relative to the initial containing block origin,
  224. // ignoring any transforms that apply to the element and its ancestors.
  225. auto offset_parent_position = offset_parent->layout_node()->box_type_agnostic_position();
  226. auto position = layout_node()->box_type_agnostic_position();
  227. return position.x().to_int() - offset_parent_position.x().to_int();
  228. }
  229. // https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetwidth
  230. int HTMLElement::offset_width() const
  231. {
  232. // NOTE: Ensure that layout is up-to-date before looking at metrics.
  233. const_cast<DOM::Document&>(document()).update_layout();
  234. // 1. If the element does not have any associated CSS layout box return zero and terminate this algorithm.
  235. if (!paintable_box())
  236. return 0;
  237. // 2. Return the width of the axis-aligned bounding box of the border boxes of all fragments generated by the element’s principal box,
  238. // ignoring any transforms that apply to the element and its ancestors.
  239. // FIXME: Account for inline boxes.
  240. return paintable_box()->border_box_width().to_int();
  241. }
  242. // https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetheight
  243. int HTMLElement::offset_height() const
  244. {
  245. // NOTE: Ensure that layout is up-to-date before looking at metrics.
  246. const_cast<DOM::Document&>(document()).update_layout();
  247. // 1. If the element does not have any associated CSS layout box return zero and terminate this algorithm.
  248. if (!paintable_box())
  249. return 0;
  250. // 2. Return the height of the axis-aligned bounding box of the border boxes of all fragments generated by the element’s principal box,
  251. // ignoring any transforms that apply to the element and its ancestors.
  252. // FIXME: Account for inline boxes.
  253. return paintable_box()->border_box_height().to_int();
  254. }
  255. // https://html.spec.whatwg.org/multipage/links.html#cannot-navigate
  256. bool HTMLElement::cannot_navigate() const
  257. {
  258. // An element element cannot navigate if one of the following is true:
  259. // - element's node document is not fully active
  260. if (!document().is_fully_active())
  261. return true;
  262. // - element is not an a element and is not connected.
  263. return !is<HTML::HTMLAnchorElement>(this) && !is_connected();
  264. }
  265. void HTMLElement::attribute_changed(FlyString const& name, Optional<String> const& value)
  266. {
  267. Element::attribute_changed(name, value);
  268. if (name == HTML::AttributeNames::contenteditable) {
  269. if (!value.has_value()) {
  270. m_content_editable_state = ContentEditableState::Inherit;
  271. } else {
  272. if (value->is_empty() || value->equals_ignoring_ascii_case("true"sv)) {
  273. // "true", an empty string or a missing value map to the "true" state.
  274. m_content_editable_state = ContentEditableState::True;
  275. } else if (value->equals_ignoring_ascii_case("false"sv)) {
  276. // "false" maps to the "false" state.
  277. m_content_editable_state = ContentEditableState::False;
  278. } else {
  279. // Having no such attribute or an invalid value maps to the "inherit" state.
  280. m_content_editable_state = ContentEditableState::Inherit;
  281. }
  282. }
  283. }
  284. // 1. If namespace is not null, or localName is not the name of an event handler content attribute on element, then return.
  285. // FIXME: Add the namespace part once we support attribute namespaces.
  286. #undef __ENUMERATE
  287. #define __ENUMERATE(attribute_name, event_name) \
  288. if (name == HTML::AttributeNames::attribute_name) { \
  289. element_event_handler_attribute_changed(event_name, value); \
  290. }
  291. ENUMERATE_GLOBAL_EVENT_HANDLERS(__ENUMERATE)
  292. #undef __ENUMERATE
  293. }
  294. // https://html.spec.whatwg.org/multipage/interaction.html#dom-focus
  295. void HTMLElement::focus()
  296. {
  297. // 1. If the element is marked as locked for focus, then return.
  298. if (m_locked_for_focus)
  299. return;
  300. // 2. Mark the element as locked for focus.
  301. m_locked_for_focus = true;
  302. // 3. Run the focusing steps for the element.
  303. run_focusing_steps(this);
  304. // FIXME: 4. If the value of the preventScroll dictionary member of options is false,
  305. // then scroll the element into view with scroll behavior "auto",
  306. // block flow direction position set to an implementation-defined value,
  307. // and inline base direction position set to an implementation-defined value.
  308. // 5. Unmark the element as locked for focus.
  309. m_locked_for_focus = false;
  310. }
  311. // https://html.spec.whatwg.org/multipage/webappapis.html#fire-a-synthetic-pointer-event
  312. bool HTMLElement::fire_a_synthetic_pointer_event(FlyString const& type, DOM::Element& target, bool not_trusted)
  313. {
  314. // 1. Let event be the result of creating an event using PointerEvent.
  315. // 2. Initialize event's type attribute to e.
  316. // FIXME: Actually create a PointerEvent!
  317. auto event = UIEvents::MouseEvent::create(realm(), type);
  318. // 3. Initialize event's bubbles and cancelable attributes to true.
  319. event->set_bubbles(true);
  320. event->set_cancelable(true);
  321. // 4. Set event's composed flag.
  322. event->set_composed(true);
  323. // 5. If the not trusted flag is set, initialize event's isTrusted attribute to false.
  324. if (not_trusted) {
  325. event->set_is_trusted(false);
  326. }
  327. // FIXME: 6. Initialize event's ctrlKey, shiftKey, altKey, and metaKey attributes according to the current state
  328. // of the key input device, if any (false for any keys that are not available).
  329. // FIXME: 7. Initialize event's view attribute to target's node document's Window object, if any, and null otherwise.
  330. // FIXME: 8. event's getModifierState() method is to return values appropriately describing the current state of the key input device.
  331. // 9. Return the result of dispatching event at target.
  332. return target.dispatch_event(event);
  333. }
  334. // https://html.spec.whatwg.org/multipage/interaction.html#dom-click
  335. void HTMLElement::click()
  336. {
  337. // FIXME: 1. If this element is a form control that is disabled, then return.
  338. // 2. If this element's click in progress flag is set, then return.
  339. if (m_click_in_progress)
  340. return;
  341. // 3. Set this element's click in progress flag.
  342. m_click_in_progress = true;
  343. // FIXME: 4. Fire a synthetic pointer event named click at this element, with the not trusted flag set.
  344. fire_a_synthetic_pointer_event(HTML::EventNames::click, *this, true);
  345. // 5. Unset this element's click in progress flag.
  346. m_click_in_progress = false;
  347. }
  348. // https://html.spec.whatwg.org/multipage/interaction.html#dom-blur
  349. void HTMLElement::blur()
  350. {
  351. // The blur() method, when invoked, should run the unfocusing steps for the element on which the method was called.
  352. run_unfocusing_steps(this);
  353. // User agents may selectively or uniformly ignore calls to this method for usability reasons.
  354. }
  355. Optional<ARIA::Role> HTMLElement::default_role() const
  356. {
  357. // https://www.w3.org/TR/html-aria/#el-article
  358. if (local_name() == TagNames::article)
  359. return ARIA::Role::article;
  360. // https://www.w3.org/TR/html-aria/#el-aside
  361. if (local_name() == TagNames::aside)
  362. return ARIA::Role::complementary;
  363. // https://www.w3.org/TR/html-aria/#el-b
  364. if (local_name() == TagNames::b)
  365. return ARIA::Role::generic;
  366. // https://www.w3.org/TR/html-aria/#el-bdi
  367. if (local_name() == TagNames::bdi)
  368. return ARIA::Role::generic;
  369. // https://www.w3.org/TR/html-aria/#el-bdo
  370. if (local_name() == TagNames::bdo)
  371. return ARIA::Role::generic;
  372. // https://www.w3.org/TR/html-aria/#el-code
  373. if (local_name() == TagNames::code)
  374. return ARIA::Role::code;
  375. // https://www.w3.org/TR/html-aria/#el-dfn
  376. if (local_name() == TagNames::dfn)
  377. return ARIA::Role::term;
  378. // https://www.w3.org/TR/html-aria/#el-em
  379. if (local_name() == TagNames::em)
  380. return ARIA::Role::emphasis;
  381. // https://www.w3.org/TR/html-aria/#el-figure
  382. if (local_name() == TagNames::figure)
  383. return ARIA::Role::figure;
  384. // https://www.w3.org/TR/html-aria/#el-footer
  385. if (local_name() == TagNames::footer) {
  386. // TODO: If not a descendant of an article, aside, main, nav or section element, or an element with role=article, complementary, main, navigation or region then role=contentinfo
  387. // Otherwise, role=generic
  388. return ARIA::Role::generic;
  389. }
  390. // https://www.w3.org/TR/html-aria/#el-header
  391. if (local_name() == TagNames::header) {
  392. // TODO: If not a descendant of an article, aside, main, nav or section element, or an element with role=article, complementary, main, navigation or region then role=banner
  393. // Otherwise, role=generic
  394. return ARIA::Role::generic;
  395. }
  396. // https://www.w3.org/TR/html-aria/#el-hgroup
  397. if (local_name() == TagNames::hgroup)
  398. return ARIA::Role::generic;
  399. // https://www.w3.org/TR/html-aria/#el-i
  400. if (local_name() == TagNames::i)
  401. return ARIA::Role::generic;
  402. // https://www.w3.org/TR/html-aria/#el-main
  403. if (local_name() == TagNames::main)
  404. return ARIA::Role::main;
  405. // https://www.w3.org/TR/html-aria/#el-nav
  406. if (local_name() == TagNames::nav)
  407. return ARIA::Role::navigation;
  408. // https://www.w3.org/TR/html-aria/#el-samp
  409. if (local_name() == TagNames::samp)
  410. return ARIA::Role::generic;
  411. // https://www.w3.org/TR/html-aria/#el-section
  412. if (local_name() == TagNames::section) {
  413. // TODO: role=region if the section element has an accessible name
  414. // Otherwise, no corresponding role
  415. return ARIA::Role::region;
  416. }
  417. // https://www.w3.org/TR/html-aria/#el-small
  418. if (local_name() == TagNames::small)
  419. return ARIA::Role::generic;
  420. // https://www.w3.org/TR/html-aria/#el-strong
  421. if (local_name() == TagNames::strong)
  422. return ARIA::Role::strong;
  423. // https://www.w3.org/TR/html-aria/#el-sub
  424. if (local_name() == TagNames::sub)
  425. return ARIA::Role::subscript;
  426. // https://www.w3.org/TR/html-aria/#el-summary
  427. if (local_name() == TagNames::summary)
  428. return ARIA::Role::button;
  429. // https://www.w3.org/TR/html-aria/#el-sup
  430. if (local_name() == TagNames::sup)
  431. return ARIA::Role::superscript;
  432. // https://www.w3.org/TR/html-aria/#el-u
  433. if (local_name() == TagNames::u)
  434. return ARIA::Role::generic;
  435. return {};
  436. }
  437. // https://html.spec.whatwg.org/multipage/semantics.html#get-an-element's-target
  438. String HTMLElement::get_an_elements_target() const
  439. {
  440. // To get an element's target, given an a, area, or form element element, run these steps:
  441. // 1. If element has a target attribute, then return that attribute's value.
  442. auto maybe_target = attribute(AttributeNames::target);
  443. if (maybe_target.has_value())
  444. return maybe_target.release_value();
  445. // FIXME: 2. If element's node document contains a base element with a
  446. // target attribute, then return the value of the target attribute of the
  447. // first such base element.
  448. // 3. Return the empty string.
  449. return String {};
  450. }
  451. // https://html.spec.whatwg.org/multipage/links.html#get-an-element's-noopener
  452. TokenizedFeature::NoOpener HTMLElement::get_an_elements_noopener(StringView target) const
  453. {
  454. // To get an element's noopener, given an a, area, or form element element and a string target:
  455. auto rel = deprecated_attribute(HTML::AttributeNames::rel).to_lowercase();
  456. auto link_types = rel.view().split_view_if(Infra::is_ascii_whitespace);
  457. // 1. If element's link types include the noopener or noreferrer keyword, then return true.
  458. if (link_types.contains_slow("noopener"sv) || link_types.contains_slow("noreferrer"sv))
  459. return TokenizedFeature::NoOpener::Yes;
  460. // 2. If element's link types do not include the opener keyword and
  461. // target is an ASCII case-insensitive match for "_blank", then return true.
  462. if (!link_types.contains_slow("opener"sv) && Infra::is_ascii_case_insensitive_match(target, "_blank"sv))
  463. return TokenizedFeature::NoOpener::Yes;
  464. // 3. Return false.
  465. return TokenizedFeature::NoOpener::No;
  466. }
  467. }