Skip to content

Commit

Permalink
Refactor Bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdhilahiRWabwire committed Oct 12, 2024
1 parent 662d28a commit 691f687
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 25 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[CommonMark]:https://commonmark.org/
[Dart]: https://dart.dev/
[Hypertext Transfer Protocol]: https://developer.mozilla.org/en-US/docs/Web/HTTP
[HTTP]: https://developer.mozilla.org/en-US/docs/Web/HTTP
[IDEA]: https://jetbrains.com/idea/
[JSON]: https://www.json.org/json-en.html
[TOML]: https://toml.io/en/
Expand All @@ -25,7 +25,7 @@ Data Interchange Web is the Web implementation of Data Interchange

- Comma-Separated Values
- Extensible Markup Language
- [Hypertext Transfer Protocol][Hypertext Transfer Protocol]
- [Hypertext Transfer Protocol][HTTP]
- Internet Protocol
- [JavaScript Object Notation][JSON]
- [Markdown][CommonMark]
Expand Down
4 changes: 2 additions & 2 deletions lib/create_attributes.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:web/web.dart';

// Attribute Creation Functions for Hypertext Markup Language
// Attribute Creators for the Document Object Model

Attr createAccept = document.createAttribute('accept');

Expand Down Expand Up @@ -38,6 +38,6 @@ Attr createResourceRelationship = document.createAttribute('rel');

Attr createRequiredAttribute = document.createAttribute('required');

Attr createSize = document.createAttribute('size');
Attr createSizeAttribute = document.createAttribute('size');

Attr createSteppingInterval = document.createAttribute('step');
10 changes: 5 additions & 5 deletions lib/create_elements.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:web/web.dart';

// Element Creation Functions for Hypertext Markup Language
// Element Creators for the Document Object Model

Element createAnchor = document.createElement('a');

Expand All @@ -18,7 +18,7 @@ Element createAudio = document.createElement('audio');

Element createBringAttentionTo = document.createElement('b');

Element createBaseUniformResourceLocator = document.createElement('base');
Element createBaseElement = document.createElement('base');

Element createBidirectionalIsolate = document.createElement('bdi');

Expand Down Expand Up @@ -90,7 +90,7 @@ Element createSectionHeadingFive = document.createElement('h5');

Element createSectionHeadingSix = document.createElement('h6');

Element createHeading = document.createElement('head');
Element createHead = document.createElement('head');

Element createHeader = document.createElement('header');

Expand Down Expand Up @@ -130,7 +130,7 @@ Element createMenu = document.createElement('menu');

Element createMetaData = document.createElement('meta');

Element createMeter = document.createElement('meter');
Element createProgressMeter = document.createElement('meter');

Element createNavigationSection = document.createElement('nav');

Expand Down Expand Up @@ -206,7 +206,7 @@ Element createTableFoot = document.createElement('tfoot');

Element createTableHeader = document.createElement('th');

Element createTableHeading = document.createElement('thead');
Element createTableHead = document.createElement('thead');

Element createDateTime = document.createElement('time');

Expand Down
12 changes: 6 additions & 6 deletions lib/create_global_attributes.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:web/web.dart';

// Attribute Creation Functions for Hypertext Markup Language
// Attribute Creators for the Document Object Model

Attr createAccessKey = document.createAttribute('accesskey');

Expand Down Expand Up @@ -40,23 +40,23 @@ Attr createItemScope = document.createAttribute('itemscope');

Attr createItemType = document.createAttribute('itemtype');

Attr createLanguage = document.createAttribute('lang');
Attr createLanguageAttribute = document.createAttribute('lang');

Attr createNumberUsedOnce = document.createAttribute('nonce');

Attr createElementPart = document.createAttribute('part');
Attr createPartAttribute = document.createAttribute('part');

Attr createPopover = document.createAttribute('popover');

Attr createElementSlot = document.createAttribute('slot');
Attr createSlotAttribute = document.createAttribute('slot');

Attr createSpellCheck = document.createAttribute('spellcheck');

Attr createElementStyle = document.createAttribute('style');
Attr createStyleAttribute = document.createAttribute('style');

Attr createTabIndex = document.createAttribute('tabindex');

Attr createElementTitle = document.createAttribute('title');
Attr createTitleAttribute = document.createAttribute('title');

Attr createTranslate = document.createAttribute('translate');

Expand Down
10 changes: 5 additions & 5 deletions lib/css_object_model.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:web/web.dart';

// Cascading Style Sheet Object Model
// Utilities for the Cascading Style Sheet Object Model

// Cascading Style Sheet
CSSStyleSheet styleSheet = CSSStyleSheet();
// Cascading Style Sheet Type
CSSStyleSheet cssStyleSheetType = CSSStyleSheet();

// Array of Cascading Style Sheets
StyleSheetList styleSheetArray = document.styleSheets;
// Cascading Style Sheet Interface
$CSS cssInterface = CSS;
6 changes: 6 additions & 0 deletions lib/document_object_model.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:web/web.dart';

// Utilities for the Document Object Model

// Document Object Model Type
Document domDocument = Document();
10 changes: 5 additions & 5 deletions lib/query_elements.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:web/web.dart';

// Query Selectors for Hypertext Markup Language Elements
// Query Selectors for for the Document Object Model

Element queryAnchor = document.querySelector('a')!;

Expand All @@ -18,7 +18,7 @@ Element queryAudio = document.querySelector('audio')!;

Element queryBringAttentionTo = document.querySelector('b')!;

Element queryBaseUniformResourceLocator = document.querySelector('base')!;
Element queryBaseElement = document.querySelector('base')!;

Element queryBidirectionalIsolate = document.querySelector('bdi')!;

Expand Down Expand Up @@ -90,7 +90,7 @@ Element querySectionHeadingFive = document.querySelector('h5')!;

Element querySectionHeadingSix = document.querySelector('h6')!;

Element queryHeading = document.querySelector('head')!;
Element queryHead = document.querySelector('head')!;

Element queryHeader = document.querySelector('header')!;

Expand Down Expand Up @@ -130,7 +130,7 @@ Element queryMenu = document.querySelector('menu')!;

Element queryMetaData = document.querySelector('meta')!;

Element queryMeter = document.querySelector('meter')!;
Element queryProgressMeter = document.querySelector('meter')!;

Element queryNavigationSection = document.querySelector('nav')!;

Expand Down Expand Up @@ -206,7 +206,7 @@ Element queryTableFoot = document.querySelector('tfoot')!;

Element queryTableHeader = document.querySelector('th')!;

Element queryTableHeading = document.querySelector('thead')!;
Element queryTableHead = document.querySelector('thead')!;

Element queryDateTime = document.querySelector('time')!;

Expand Down
Loading

0 comments on commit 691f687

Please sign in to comment.