Comments (2)
I was able to reproduce this issue with a random post from your account, and it looks to be caused by the microformats spec having changed the implied u-url rules. Since u-photo exists, it no longer implies a u-url.
I realize now that should have been a version bump as that is actually a breaking change.
from microformats-ruby.
Example html to reproduce.
`
<div class="h-entry">
<div class="h-cite p-comment">
<a class="status__display-name p-author h-card" rel="noopener" href="https://site.example/@AwesomeUser">
<img width="48" height="48" alt="" class="u-photo account__avatar" src="https://site.example/user-photo.png" />
<strong class="display-name__html p-name emojify">AwesomeUser</strong>
</a>
</div>
</div>
`
Not sure if we should roll back the version at this point
@jgarber623 thoughts?
Going forward, I would recommend specifying the u-url as no new parser will get this url value.
If you wrap move the classes out of the A tag to a containing tag it will work.
<div class="h-entry">
<div class="h-cite p-comment">
<div class="p-author h-card">
<a class="status__display-name u-url" rel="noopener" href="https://site.example/@AwesomeUser">
<img width="48" height="48" alt="" class="u-photo account__avatar" src="https://site.example/user-photo.png" />
<strong class="display-name__html p-name emojify">AwesomeUser</strong>
</a>
</div>
</div>
</div>`
from microformats-ruby.
Related Issues (20)
- CI doesn't accurately test everything HOT 6
- leave in support for 2.3 HOT 2
- Support ruby 2.7 HOT 1
- Support Ruby 3.0
- Update gem for Ruby 3.0 support HOT 6
- Support Ruby 3.1
- New release for Ruby 3.2 support HOT 2
- Parse href and title attributes on <link> elements for u- and p- properties respectively.
- Don't add time precision unless authored
- Discussion: microformats-ruby logo HOT 2
- Configure Travis CI / Code Climate coverage reporting HOT 13
- <br> tags are not interpreted as whitespace when converting HTML to plaintext HOT 2
- Supported Ruby versions? HOT 2
- Updates for new implied p-name rules HOT 1
- update to most recent test set HOT 1
- filter out style tags HOT 1
- when rendering text, use image alt tags HOT 1
- Question: Vendor'ed test suite as git submodule? HOT 2
- implement alt tag parsing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microformats-ruby.