aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLElement.webidl
Commit message (Collapse)AuthorAgeFilesLines
* script: Move code generation and webidl files to new script_bindings crate. ↵Josh Matthews2025-01-241-79/+0
| | | | | (#35157) Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* api: Flatten and simplify Servo preferences (#34966)Martin Robinson2025-01-141-2/+2
| | | | | | | | | | | | | | | | | | | Flatten and simplify Servo's preferences code. In addition, have both preferences and options passed in as arguments to `Servo::new()` and make sure not to use the globally set preferences in `servoshell` (as much as possible now). Instead of a complex procedural macro to generate preferences, just expose a very simple derive macro that adds string based getters and setters. - All command-line parsing is moved to servoshell. - There is no longer the concept of a missing preference. - Preferences no longer have to be part of the resources bundle because they now have reasonable default values. - servoshell specific preferences are no longer part of the preferences exposed by the Servo API. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Layout: Implement innerText/outerText (#33312)Ben2024-09-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement outerText on HtmlElement Signed-off-by: Shane Handley <shanehandley@fastmail.com> * Fixed some innerText/outerText bugs Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> * Unified innerText/outerText handling outside of Layout Before these 2 were treated separately and only within Layout would they end up calling the same method, now they are already unified within HTMLElement Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> * Address a few nits Signed-off-by: Martin Robinson <mrobinson@igalia.com> * Added innerText support for `inline-flex` Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> --------- Signed-off-by: Shane Handley <shanehandley@fastmail.com> Signed-off-by: Benjamin Vincent Schulenburg <bennyschulenburg@gmx.de> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Shane Handley <shanehandley@fastmail.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* script: implement autofocus IDL reflection (#32170)Nolan Lawson2024-04-291-0/+1
| | | | | * script: implement autofocus IDL reflection * test: update wpt results files
* Implement form-associated custom elements and their ElementInternals (#31980)cathiechen2024-04-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * FACEs work, setFormValue test is awful so now has _mozilla backup * 1. Impl Validatable in ElementInternals instead of HTMLElement. 2. Reuse the code in Validatable trait. 3. The form associated custom element is not a customized built-in element. * add some comments * support readonly attribute and complete barred from constraint validation * Addressed the code review comments * Updated the legacy-layout results * Fixed the WPT failures in ElementInternals-validation.html * Addressed the code review comments * Review suggestions * Fixed silly mistakes and update the test result outside elementinternals * update the test results --------- Co-authored-by: Patrick Shaughnessy <pshaughn@comcast.net> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Rename legacy extended attributes in webidlssagudev2023-02-191-1/+1
| | | | https://github.com/whatwg/webidl/pull/870
* Convert Web IDL void to undefinedKagami Sascha Rosylight2022-01-051-3/+3
| | | | Fixes #27660
* Use map_or and fix manifestDmitry Kolupaev2020-02-251-1/+1
|
* Implement dirname for form submit and directionality for elementDmitry Kolupaev2020-02-251-2/+2
|
* Translate attribute and its inheritance semanticsPatrick Shaughnessy2020-02-121-2/+2
|
* Convert [HTMLConstructor] as constructor extensionKagami Sascha Rosylight2019-10-191-1/+3
|
* Remove [PrimaryGlobal]Kagami Sascha Rosylight2019-10-031-1/+1
|
* Migrate to IDL mixin syntaxKagami Sascha Rosylight2019-10-011-4/+4
|
* Update WebIDL.py to 4166cae81546Manish Goregaokar2019-03-041-1/+1
| | | | | | https://hg.mozilla.org/integration/autoland/rev/4166cae81546f54accae807413f806d20bf30920 Pulls in changes from https://bugzilla.mozilla.org/show_bug.cgi?id=1359269
* Update MPL license to https (part 2)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Implement element.innerText getterFernando Jiménez Moreno2018-02-131-0/+2
|
* Add implementation for itemprop and itemtypeVijay Hebbar2017-11-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Created test file Added the stub methods for itemprop and itemscope Resolved html5ever dependency, added ItemScope and ItemProp attr Resolving dependency Added pref override on metadata attributes Resetting to original state due to change in requirement Reverted adding attributes 1. add a customized implementation of parse_plain_attribute 2. add the following methods to HTMLElement.webidl added itemprop and itemtype, enabled pref in test Added initial implementation for getting itemprop property values Adding the wireframe for testing Implemented function to handle itemType Corrected typo Fixed typo bug in code Handling duplicates for itemtype attribute values Added the test suite structure Added test for extra space Added test for regular test values Added test cases for Single property values Test cases to check absence of itemtype and itemprop attributes Added code to handle absence of itemtype or itemprop attributes Added shell script to run all test cases cleared up Cargo file Tidying up Removed the local test file Removed new line for test-tidy Ordered key in prefs.json Fixes for test-tidy Enabled test preferences Created test using wpt Creating WPT Tests for Regular and Single Prop Types Fixed the Regular type test Fixed tests Removed old test case metadata Incorporate review changes from PR Updated MANIFEST to sync test cases Making changed suggested in review Removed editor folding Removed unnecessary code Resolving cargo conflicts Updated PropertyNames and itemtypes implementation Trying different data in test case Updated manifest Updated code based on reviews
* Add CEReactions where neededConnor Brewster2017-07-181-8/+17
|
* Add HTMLConstructor attributes where neededConnor Brewster2017-06-151-0/+1
|
* Partial fix for 12415Scott Trinh2016-10-171-1/+0
|
* Explicitly expose everything everywhere.Ms2ger2016-07-121-0/+1
|
* Removed references to DOMSettableTokenListKosov Eugene2016-06-051-4/+1
|
* dom: Add missing event handlersPiotr Stankiewicz2016-05-201-0/+1
| | | | | | | | | | Adding: * global event handlers, * window event handlers, * document and element handlers, * and support for BeforeUnloadEvent. Signed-off-by: Piotr Stankiewicz <bionicrift@gmail.com>
* Remove modelines everywhere but tests/wptedunham2016-04-201-1/+0
|
* Add ElementContentEditable WebIDL interfaceCorey Farwell2015-11-061-2/+1
|
* Explicitly place '/' before fragment for multipage spec linksCorey Farwell2015-10-101-1/+1
| | | | | This prevents us from 301 redirecting, which could cause the fragment to get lost
* Replace usage of old-style WHATWG spec linksCorey Farwell2015-10-101-1/+1
|
* Implement offsetParent/Top/Left/Width/Height.Glenn Watson2015-08-031-0/+11
|
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-1/+1
| | | | | | | | | | | | | | Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
* Basic element.focus and blur methodsMatt Brubeck2015-04-041-2/+2
| | | | Fixes #5462.
* Implement HTMLElement.dataset (fixes #2974).Bruno de Oliveira Abinader2014-12-231-1/+1
|
* Revert PR #4038 for causing WPT failures.Ms2ger2014-12-231-1/+1
|
* Implement HTMLElement.datasetBruno de Oliveira Abinader2014-12-191-1/+1
| | | | Make DOMStringMap use related Element's custom attributes values.
* Add a style property to HTMLElement.Josh Matthews2014-12-181-0/+1
|
* Hook up synthetic click activation to script_task and <>.click()Manish Goregaokar2014-12-051-1/+1
|
* Implemented hidden, removed corresponding passed testsaakashjain2014-11-281-1/+1
|
* Implement HTMLElement#lang.Ms2ger2014-11-061-1/+1
|
* Implement HTMLElement.title.Ms2ger2014-11-051-1/+1
|
* Cargoify servoJack Moffitt2014-09-081-0/+48