Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scripting and user preferences as Device parameters #259

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

kasperisager
Copy link
Contributor

In working on #251, I realised that we're currently lacking scripting as a device parameter. This is needed to correctly handle rendering hints for the <noscript> element as they depend on whether scripting is enabled or not. This pull request therefore adds scripting as a device parameter and also adds user preferences as these are something we'll be needing.

The changes introduced are breaking as they add two additional required properties to the Device.JSON type. The javascript option for the Scraper#scrape() method has also been removed as the Device#scripting property now fulfils this need, and likewise has the --[no-]javascript flag in the CLI been renamed --[no-]scripting to align things.

@kasperisager kasperisager added the major Backwards-incompatible change that touches public API label Jun 10, 2020
@kasperisager kasperisager requested a review from Jym77 June 10, 2020 10:56
@kasperisager kasperisager self-assigned this Jun 10, 2020
@kasperisager kasperisager merged commit 547177a into master Jun 10, 2020
@kasperisager kasperisager deleted the device-scripting-and-preferences branch June 10, 2020 11:25
kasperisager added a commit that referenced this pull request Jun 10, 2020
* master:
  `Preference.initial()` -> `Preference.unset()`
  Add scripting and user preferences as `Device` parameters (#259)
kasperisager added a commit that referenced this pull request Jun 23, 2020
* master:
  Rewrite the CLI internals (#265)
  Avoid discarding rules when adding to `RuleTree` (#274)
  Move presentational role conflict resolution down to Role.from (#273)
  Support passing additional arguments to `Parser`
  Update README
  Rewrite the @siteimprove/alfa-math package (#268)
  Create security.md
  Treat kind attribute as enumerated (#269)
  Account for presentational role conflict resolution in ARIA feature mappings (#264)
  Update lockfile
  Prevent infinite instantiation of `Interview` type (#266)
  Lazy load syntax definitions (#263)
  Add user agent styles for `<noscript>` element (#260)
  Fix some parse issues in `Media`
  `Preference.initial()` -> `Preference.unset()`
  Add scripting and user preferences as `Device` parameters (#259)
  Give build scripts a once-over
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Backwards-incompatible change that touches public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants