-
Notifications
You must be signed in to change notification settings - Fork 608
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
Fix cloning attributes to use setAttributeNode to fix #859 #889
Open
gijsk
wants to merge
1
commit into
mozilla:main
Choose a base branch
from
gijsk:attribute-node
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
test/test-pages/virginia-edu-broken-attributes/expected-metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"title": "Dungeons & Dragons and Burgers: ‘Really Bad Outcomes’ When We Don’t Grasp Fractions", | ||
"byline": "•", | ||
"dir": "ltr", | ||
"lang": "en", | ||
"excerpt": "People rely too heavily on anecdotal evidence when looking at complex problems. Author and UVA scientist James Zimring says the solution to better understanding lies in understanding fractions.", | ||
"siteName": "UVA Today", | ||
"publishedTime": "2022-05-27T08:00:00-04:00", | ||
"readerable": true | ||
} |
12 changes: 12 additions & 0 deletions
12
test/test-pages/virginia-edu-broken-attributes/expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div id="readability-page-1" class="page"> | ||
<div 2=""> | ||
<p>Zimring said humans have still not learned to look at problems holistically.</p> | ||
<p>“Setting aside the controversy regarding Dungeons & Dragons, people now claim that dark music and/or violent video games increase teen suicide, but it seems we haven’t learned our lesson because instead of saying, ‘All right, well, let’s look at these factors and take into account these probabilistic determinations,’ people jump right to a causal conclusion,” he said. “This is one example of a human tendency to ignore the whole fraction.”</p> | ||
<p>Zimring offers several other examples in his book to prove this point. One is the sad tale of a massive marketing flop by A&W Restaurants, which thought it had a home run.</p> | ||
<p>The burger joint set out to take on one of MacDonald’s’ signature sandwiches, the Quarter Pounder. A&W’s burger tasted better in blind taste tests. It cost less. It was bigger. They called it the “Third Pound Burger.”</p> | ||
<p>It bombed. A market postmortem would reveal why. “The best they could determine was that people didn’t want to buy it because they thought that a third of a pound was less than a quarter pound because three is less than four,” Zimring said.</p> | ||
<p>However, this human shortcoming of failing to consider statistical data when trying to understand a situation does have a good side, he said. It lies in something called heuristics – a cognitive framework humans rely upon to make quick, though sometimes imperfect, decisions.</p> | ||
<p>“You can’t pay attention to every leaf blowing in the wind as you’re driving,” Zimring said by example. “But if one of those leaves suddenly explodes and bursts into flames, you should probably pay attention to that. We use heuristics to allow our brains, which are limited, to process information quickly enough that we can actually navigate the world in real time.</p> | ||
<p>“We sacrifice the more logical reasoning systems for these shortcuts because they let us get by and they usually work,” Zimring said. “It's just that when they fail, they can fail disastrously.”</p> | ||
</div> | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't actually very good, but it addresses the invalid markup breaking us entirely.