Skip to content

duplicate mapping sections are showing up #360

Closed

Description

@scottaohara

Something quirky must be going on with the scripts where a second mapping section for both the HTML elements and attributes are now being created.

@jnurthen or @spectranaut maybe we could look at this when we've some overlapping 'free' time?

i imagine the solution here will be to use all the aria-common scripts, and might be best to wait until w3c/core-aam#102 is resolved?

Activity

  1. spectranaut commented on Jan 20, 2022

    @spectranaut
    Contributor

    Wow this is very odd... and since I'm looking at the same code for core-aam, I'm happy to take a look here too!

  2. scottaohara commented on Jan 20, 2022

    @scottaohara
    MemberAuthor

    much appreciated @spectranaut

  3. spectranaut commented on Jan 21, 2022

    @spectranaut
    Contributor

    Ok, so I looked into it! It turns out mappingTables is called twice: once when the js file is loaded (you can see the code at the top of the file, related to respec events, which are no longer supported, according to the discussion here: https://github.com/w3c/html-aam/blob/gh-pages/script/mapping-tables.js#L91), and once during the respec preprocessing.

    I'm removing the onload running of mappingTables in the mapping-tables.js file in this pr over at core-aam: w3c/core-aam#105

    These two files should be the same file, currently they are not, mostly do to weird code formatting differences as far as I can tell. Should we wait for the other PR to land and then copy the file here?

  4. scottaohara commented on Jan 21, 2022

    @scottaohara
    MemberAuthor

    yeah i'm fine with waiting on this. to be fair, no one has said anything...

    if i'm looking at the head of this spec correctly, we really should be just calling all the scripts from aria-common instead of copying them here. i think the forking of the scripts happened when HTML AAM was part of w3c's html group and then the web apps group... but now that it's back in the ARIA WG we should have access to aria-common again?

    ... so yeh. long way of saying i'm fine with waiting. we can then try to just reference the common scripts instead of copying them here. and if that doesn't work, then copy them over.

  5. scottaohara commented on Apr 18, 2022

    @scottaohara
    MemberAuthor

    this was fixed and was actually due to some errant markup. closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions