Imrovement: Consolidate definition of type-Attribute for JavascriptHeaderItems
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
Research direction
Read the JavaScript header item classes named in the issue: JavaScriptReferenceType, JavaScriptContentType, JavaScriptBrowserProcessedContentType, and JavascriptHeaderItem. The issue says a pull request was prepared for Wicket 10 at https://github.com/apache/wicket/pull/1882; review that work to understand the proposed consolidation. The work is complete when the type attribute is defined consistently for all JavaScript header item subclasses.
Written by the indexing model from the issue text.
Description
There are two implementations for the same task: defining a value for the "type"-Attribute of a script-Tag:
- org.apache.wicket.markup.head.JavaScriptReferenceType for AbstractJavaScriptReferenceHeaderItem (and subclasses)
- org.apache.wicket.markup.head.JavaScriptContentType and org.apache.wicket.markup.head.JavaScriptBrowserProcessedContentType for JavascriptContentHeaderItem
Observation: all subclasses of JavascriptHeaderItems have (their own) solution to define a value for the "type"-Attribute
Conclusion: define the value for the "type"-Attribute in JavascriptHeaderItem - similar to the "id"-Attribute.
I personally like the style of the 2nd way with interface org.apache.wicket.markup.head.JavaScriptContentType but prefer to implement Constants directly in the Interface-Class.
I prepared a PR for this based on the Wicket 10 - Branch https://github.com/apache/wicket/pull/1882
- Dominant language
- Java
- Stars
- 800
- Forks
- 437
- Avg merge
- 21h 36m
- Merged PRs (30d)
- 167
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/wicket
-
PropertyResolver fails on JDK classes with a non-public field named like the propertyPossibly taken @vaibhavgupta443 claimed this today. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/wicket#1991 · 1 comment ·
Maintainers usually reply within 1 day
-
Stop the autocomplete from accumulating request parameters while typingPossibly taken @aryankalantri claimed this today. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
apache/wicket#1947 · 2 comments ·
Maintainers usually reply within 1 day
-
Validate the report-uri value given to CSPHeaderConfiguration#reportBackPossibly taken @AzizOuertani claimed this 3 days ago. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
apache/wicket#1946 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 70/100
Maintainers usually reply within 1 day
Similar issues
-
account assessment course feature lecture
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
app:learninggoalhub enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100