• Darren Shen's avatar
    Do not treat escaped asterisk as universal selector. · 69b7d1c1
    Darren Shen authored
    This patch fixes an issue where an escaped asterisk character is being
    treated as a universal selector. The problem was that \* and * were
    represented as g_star_atom (the '*' character) in selector matching.
    
    To differentiate between the two, we picked a different way to represent
    universal selectors. The local name of a universal selector becomes
    g_null_atom instead of g_star_atom. This way, \* and * will no longer
    clash.
    
    Bug: 682747
    Change-Id: Ied14b468c8bfae6ed1022a565f4f46cea4c556a8
    Reviewed-on: https://chromium-review.googlesource.com/765626Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
    Commit-Queue: Darren Shen <shend@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521556}
    69b7d1c1
css-selector-text-expected.txt 7.11 KB