Re: RFR: 8322708: Global HTML attributes are not allowed [v4]

2024-06-14 Thread Nizar Benalla
On Fri, 14 Jun 2024 19:01:56 GMT, Chen Liang wrote: >> Nizar Benalla has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Simplify method > > src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclint/HtmlTag.java line > 670: > >> 668:

Re: RFR: 8322708: Global HTML attributes are not allowed [v5]

2024-06-14 Thread Nizar Benalla
> Can I please get a review for this change, that aims to add support for > Global HTML tags. > Here is the > [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) > to the generated docs. > Thanks in advance. Nizar Benalla has updated the pull request

Re: RFR: 8322708: Global HTML attributes are not allowed [v4]

2024-06-14 Thread Chen Liang
On Fri, 14 Jun 2024 19:00:41 GMT, Nizar Benalla wrote: >> Can I please get a review for this change, that aims to add support for >> Global HTML tags. >> Here is the >> [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) >> to the generated docs. >> Thanks in

Re: RFR: 8322708: Global HTML attributes are not allowed [v4]

2024-06-14 Thread Nizar Benalla
> Can I please get a review for this change, that aims to add support for > Global HTML tags. > Here is the > [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) > to the generated docs. > Thanks in advance. Nizar Benalla has updated the pull request

RFR: 8334241: Adjust API docs side bar dimensions

2024-06-14 Thread Hannes Wallnöfer
Please review a change to slightly adjust the proportion between the side bar and the main content area in API documentation pages, making the side bar a bit slimmer and leaving more space for the main content area. The ratio between side bar and main content used to be 1 : 2.6, it is now 1 :

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Pavel Rappo
On Fri, 14 Jun 2024 12:15:45 GMT, Nizar Benalla wrote: >> Can I please get a review for this change, that aims to add support for >> Global HTML tags. >> Here is the >> [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) >> to the generated docs. >> Thanks in

Re: RFR: 8325690: The scrollable element with non-interactive content is not tabbable [v38]

2024-06-14 Thread psoujany
> The scrollable element `` with non-interactive content is not tabbable. > Grid columns in the javadoc stylesheet has overflow: auto, which is failing > Accessibility checks. > https://bugs.openjdk.org/browse/JDK-8325690 psoujany has updated the pull request with a new target base due to a

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Jonathan Gibbons
On Tue, 11 Jun 2024 13:03:47 GMT, Pavel Rappo wrote: >> Nizar Benalla has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains ten additional >> commits

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Jonathan Gibbons
On Tue, 11 Jun 2024 22:12:42 GMT, Jonathan Gibbons wrote: >> Nizar Benalla has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains ten additional >>

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Jonathan Gibbons
On Fri, 14 Jun 2024 12:12:51 GMT, Nizar Benalla wrote: >> Can I please get a review for this change, that aims to add support for >> Global HTML tags. >> Here is the >> [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) >> to the generated docs. >> Thanks in

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Pavel Rappo
On Wed, 12 Jun 2024 09:03:38 GMT, Hannes Wallnöfer wrote: >> Wouldn't the easiest solution be to add a boolean `global`/`isGlobal` field >> and getter to `Attr`? >> >> That would give use some more opportunities to simplify the code: We could >> get rid of the `GLOBAL_ATTRS` map here *and*

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Hannes Wallnöfer
On Wed, 12 Jun 2024 09:02:20 GMT, Hannes Wallnöfer wrote: >> I suggest one of >> >> 1. Add a `boolean global;` member to the enum, and provide a second >> constructor that allows that boolean member to be set true. For example, >> >> WIDTH, >> STYLE(true), >> >> >> 2. Make the `Set` be

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Hannes Wallnöfer
On Tue, 11 Jun 2024 21:58:46 GMT, Jonathan Gibbons wrote: >>> If we are ordering the entries, we can use comparable to check that an attr >>> is greater than the start of the global attr, something like >>> >>> ```java >>> private static boolean isGlobalAttr(Attr value) { >>> return

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Jonathan Gibbons
On Tue, 11 Jun 2024 13:41:58 GMT, Pavel Rappo wrote: >> If we are ordering the entries, we can use comparable to check that an attr >> is greater than the start of the global attr, something like >> >> private static boolean isGlobalAttr(Attr value) { >> return

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Jonathan Gibbons
On Tue, 11 Jun 2024 12:40:23 GMT, Nizar Benalla wrote: >> Either what Chen has suggested or re-sort the complete list alphabetically >> as it was prior to this change, well, almost. > >> Either what Chen has suggested or re-sort the complete list alphabetically >> as it was prior to this

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Nizar Benalla
On Wed, 12 Jun 2024 09:26:25 GMT, Pavel Rappo wrote: >> I admit to being "lazy" when I wrote `startsWith("on")`. In general, I don't >> think folk should be writing many if any event handlers in doc comments, and >> it was easier to give forward compatibility with a weak test for `"on"`. >>

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Pavel Rappo
On Tue, 11 Jun 2024 23:49:15 GMT, Jonathan Gibbons wrote: >> As @jonathan-gibbons likes to point out, javadoc is not an HTML validation >> tool. So I think, it's okay to leave the code simple. Maybe this would be >> even simpler? >> >> data-[a-z][-a-z0-9]* > > I admit to being "lazy" when

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Jonathan Gibbons
On Tue, 11 Jun 2024 15:09:03 GMT, Pavel Rappo wrote: >> I think like being slightly restrictive and safe. > > As @jonathan-gibbons likes to point out, javadoc is not an HTML validation > tool. So I think, it's okay to leave the code simple. Maybe this would be > even simpler? > >

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Pavel Rappo
On Tue, 11 Jun 2024 14:42:48 GMT, Nizar Benalla wrote: >> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclint/Checker.java line >> 695: >> >>> 693: // custom "data-*" attributes are also accepted >>> 694: var attrName=name.toString(); >>> 695: if

Re: RFR: 8322708: Global HTML attributes are not allowed [v2]

2024-06-14 Thread Nizar Benalla
On Tue, 11 Jun 2024 13:24:48 GMT, Nizar Benalla wrote: >> Can I please get a review for this change, that aims to add support for >> Global HTML tags. >> Here is the >> [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) >> to the generated docs. >> Thanks in

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Nizar Benalla
On Tue, 11 Jun 2024 13:26:28 GMT, Pavel Rappo wrote: >> Nizar Benalla has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contains ten additional >> commits

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Nizar Benalla
On Fri, 14 Jun 2024 12:12:51 GMT, Nizar Benalla wrote: >> Can I please get a review for this change, that aims to add support for >> Global HTML tags. >> Here is the >> [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) >> to the generated docs. >> Thanks in

Re: RFR: 8322708: Global HTML attributes are not allowed [v3]

2024-06-14 Thread Nizar Benalla
> Can I please get a review for this change, that aims to add support for > Global HTML tags. > Here is the > [link](https://cr.openjdk.org/~nbenalla/javadocGlobalPR/pkg1/package-summary.html) > to the generated docs. > Thanks in advance. Nizar Benalla has updated the pull request with a new

Re: RFR: 8325690: The scrollable element with non-interactive content is not tabbable [v37]

2024-06-14 Thread psoujany
On Fri, 14 Jun 2024 11:31:30 GMT, psoujany wrote: >> The scrollable element `` with non-interactive content is not tabbable. >> Grid columns in the javadoc stylesheet has overflow: auto, which is failing >> Accessibility checks. >> https://bugs.openjdk.org/browse/JDK-8325690 > > psoujany has

Re: RFR: 8325690: The scrollable element with non-interactive content is not tabbable [v37]

2024-06-14 Thread psoujany
> The scrollable element `` with non-interactive content is not tabbable. > Grid columns in the javadoc stylesheet has overflow: auto, which is failing > Accessibility checks. > https://bugs.openjdk.org/browse/JDK-8325690 psoujany has updated the pull request incrementally with one additional

Re: RFR: 8325690: The scrollable element with non-interactive content is not tabbable [v36]

2024-06-14 Thread psoujany
> The scrollable element `` with non-interactive content is not tabbable. > Grid columns in the javadoc stylesheet has overflow: auto, which is failing > Accessibility checks. > https://bugs.openjdk.org/browse/JDK-8325690 psoujany has updated the pull request incrementally with one additional

Re: RFR: 8325690: The scrollable element with non-interactive content is not tabbable [v35]

2024-06-14 Thread psoujany
> The scrollable element `` with non-interactive content is not tabbable. > Grid columns in the javadoc stylesheet has overflow: auto, which is failing > Accessibility checks. > https://bugs.openjdk.org/browse/JDK-8325690 psoujany has updated the pull request incrementally with one additional

Re: RFR: 8325690: The scrollable element with non-interactive content is not tabbable [v34]

2024-06-14 Thread psoujany
> The scrollable element `` with non-interactive content is not tabbable. > Grid columns in the javadoc stylesheet has overflow: auto, which is failing > Accessibility checks. > https://bugs.openjdk.org/browse/JDK-8325690 psoujany has updated the pull request incrementally with one additional