Open Issues Need Help
View All on GitHubSwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
AI Summary: The user is trying to get the final URL of a Google "I'm feeling lucky" redirect using SwiftSoup. Although SwiftSoup successfully fetches and parses the HTML content of the target page, the `doc.location()` and `doc.getBaseUri()` methods return empty strings, indicating that the document's base URI is not being set or retained.
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
AI Summary: The user reports an issue in SwiftSoup where chaining `.first()` after `select(":first-child")` returns the parent element (`<a>`) instead of the expected first child (`<img>` or `<span>`). When `.first()` is omitted, the `select` call correctly identifies and allows access to the `data-original-title` attribute of the intended child elements. This indicates a potential bug or unexpected behavior in how `.first()` interacts with the result of the `:first-child` selector.
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
AI Summary: The task is to fix a bug in the SwiftSoup library where non-breaking spaces (\u{A0}) are not properly escaped to . The issue lies in a conditional statement within the Entities.swift file that incorrectly handles the escape sequence for \u{A0}. The solution involves modifying the conditional logic to correctly identify and escape non-breaking spaces.
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)